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 f153a4e commit 9dcaefbCopy full SHA for 9dcaefb
docs/components/links.js
@@ -38,8 +38,7 @@ export async function readMarkdownSource(f) {
38
// Recursively find all md files in the directory.
39
export async function* readMarkdownFiles(root, subpath = "/") {
40
for (const fname of await readdir(root + subpath)) {
41
- if (fname.startsWith(".") || fname.endsWith(".js")) continue; // ignore .vitepress etc.
42
- if ((await stat(root + subpath + fname)).isDirectory()) yield* readMarkdownFiles(root, subpath + fname + "/");
+ if (!fname.includes(".") && (await stat(root + subpath + fname)).isDirectory()) yield* readMarkdownFiles(root, subpath + fname + "/");
43
else if (fname.endsWith(".md")) yield subpath + fname;
44
}
45
0 commit comments