Skip to content

Commit

Permalink
sync: Updates from docusaurus-template
Browse files Browse the repository at this point in the history
  • Loading branch information
writedocs-integration committed Jan 21, 2025
1 parent 28c2b1a commit c374912
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions writedocs/api.merge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ const extractContentAfterMetadata = (content) => {
);
let processedContent = matches ? matches[2].trim() : content;

// Remove import statements
processedContent = processedContent.replace(/import.*?\n/g, "");
// Remove only specific import statements
processedContent = processedContent.replace(
/import.*?from\s+["']@site\/src\/components["'](\s*\/\/\s*apiFiles import\s*)?;\n?/g,
""
);

return processedContent.trim();
};
Expand Down

0 comments on commit c374912

Please sign in to comment.