We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9bb991 commit 57c7be9Copy full SHA for 57c7be9
test/docs-test.js
@@ -67,7 +67,7 @@ async function readMarkdownSource(f) {
67
// Recursively find all md files in the directory.
68
async function* readMarkdownFiles(root, subpath = "/") {
69
for (const fname of await readdir(root + subpath)) {
70
- if (fname.startsWith(".")) continue; // ignore .vitepress etc.
+ if (fname.startsWith(".") || fname.endsWith(".js")) continue; // ignore .vitepress etc.
71
if ((await stat(root + subpath + fname)).isDirectory()) yield* readMarkdownFiles(root, subpath + fname + "/");
72
else if (fname.endsWith(".md")) yield subpath + fname;
73
}
0 commit comments