MCPcopy Create free account
hub / github.com/continuedev/continue / readDocFile

Function readDocFile

docs-site/lib/docs.ts:126–133  ·  view source on GitHub ↗
(filePath: string, slug: string[])

Source from the content-addressed store, hash-verified

124}
125
126function readDocFile(filePath: string, slug: string[]): DocFile {
127 const raw = fs.readFileSync(filePath, "utf8");
128 const { data: frontmatter, content } = matter(raw);
129
130 const processed = preprocessMdx(content, slug);
131
132 return { frontmatter, content: processed, slug };
133}
134
135/**
136 * Preprocess MDX content:

Callers 1

loadMdxFileFunction · 0.85

Calls 1

preprocessMdxFunction · 0.85

Tested by

no test coverage detected