Skip to content

Commit 08d4e5b

Browse files
authored
skip glossary for MCMP servers (#550)
1 parent f45c39c commit 08d4e5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/remark-glossary.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export function remarkGlossary(options: RemarkGlossaryOptions) {
2929
return;
3030
}
3131

32+
// don't process the many MCP tool pages
33+
if (file.history?.[0]?.includes("/mcp-servers/")) {
34+
return;
35+
}
36+
3237
// Lazy-load and cache glossary terms
3338
if (!cachedTerms || cachedGlossaryPath !== glossaryPath) {
3439
cachedTerms = sortTermsByLength(parseGlossary(glossaryPath));

0 commit comments

Comments
 (0)