From e64d0dc25b051c8c9bf1b1999685e0ada1c713e1 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 15 Jul 2022 12:44:57 +0200 Subject: [PATCH] Build --- scripts/generate_fs_list.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/generate_fs_list.js b/scripts/generate_fs_list.js index 805c31f9..4adb5426 100644 --- a/scripts/generate_fs_list.js +++ b/scripts/generate_fs_list.js @@ -15,15 +15,10 @@ async function getFiles(dir) { const rootDir = resolve("docs"); getFiles(rootDir).then((files) => { - files = files - .map((file) => ({ - name: file.substring(rootDir.length + 1).replace(/\.md$/, ""), - lastModified: 0, - perm: "ro", - })) - .filter( - (pageMeta) => - !pageMeta.name.startsWith("_") && !pageMeta.name.startsWith(".") - ); + files = files.map((file) => ({ + name: file.substring(rootDir.length + 1).replace(/\.md$/, ""), + lastModified: 0, + perm: "ro", + })); console.log(JSON.stringify(files, null, 2)); });