Skip to content

Commit 57c7be9

Browse files
committed
ignore .js files (a link to plot.js)
1 parent e9bb991 commit 57c7be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/docs-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function readMarkdownSource(f) {
6767
// Recursively find all md files in the directory.
6868
async function* readMarkdownFiles(root, subpath = "/") {
6969
for (const fname of await readdir(root + subpath)) {
70-
if (fname.startsWith(".")) continue; // ignore .vitepress etc.
70+
if (fname.startsWith(".") || fname.endsWith(".js")) continue; // ignore .vitepress etc.
7171
if ((await stat(root + subpath + fname)).isDirectory()) yield* readMarkdownFiles(root, subpath + fname + "/");
7272
else if (fname.endsWith(".md")) yield subpath + fname;
7373
}

0 commit comments

Comments
 (0)