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 9dcaefb commit 13b5223Copy full SHA for 13b5223
docs/components/links.js
@@ -38,7 +38,10 @@ 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.includes(".") && (await stat(root + subpath + fname)).isDirectory()) yield* readMarkdownFiles(root, subpath + fname + "/");
42
- else if (fname.endsWith(".md")) yield subpath + fname;
+ if (!fname.includes(".") && (await stat(root + subpath + fname)).isDirectory()) {
+ yield* readMarkdownFiles(root, subpath + fname + "/");
43
+ } else if (fname.endsWith(".md")) {
44
+ yield subpath + fname;
45
+ }
46
}
47
0 commit comments