Skip to content

Commit ddd9bc5

Browse files
committed
...
1 parent 5a12392 commit ddd9bc5

File tree

1 file changed

+4
-0
lines changed
  • homedocs/src/integrations/llms-txt

1 file changed

+4
-0
lines changed

homedocs/src/integrations/llms-txt/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ async function extractMdxContent(mdxPath, srcDir, onlyStructure) {
229229
// Remove frontmatter section if still present
230230
processedContent = processedContent.replace(/^---[\s\S]*?---\s*/m, "");
231231

232+
// Remove OnThisPage component
233+
processedContent = processedContent.replace(/<OnThisPage\s*\/?>/g, "");
234+
processedContent = processedContent.replace(/<OnThisPage\s+collapsed\s*\/?>/g, "");
235+
232236
// If only structure, keep only headings
233237
if (onlyStructure) {
234238
const lines = processedContent.split("\n");

0 commit comments

Comments
 (0)