From 29070a1497f9a024089628d7e333cb0650f809ef Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 15 Jul 2022 12:57:05 +0200 Subject: [PATCH] Update fs list --- scripts/generate_fs_list.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/generate_fs_list.js b/scripts/generate_fs_list.js index 4adb5426..a61bb0ea 100644 --- a/scripts/generate_fs_list.js +++ b/scripts/generate_fs_list.js @@ -15,10 +15,15 @@ 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", - })); + files = files + .map((file) => ({ + name: file + .substring(rootDir.length + 1) + .replace(/\.md$/, "") + .replace(/\.plug\.json$/, ""), + lastModified: 0, + perm: "ro", + })) + .filter((pageMeta) => !pageMeta.name.startsWith(".")); console.log(JSON.stringify(files, null, 2)); });