Update fs list

website
Zef Hemel 2022-07-15 12:57:05 +02:00
parent e64d0dc25b
commit 29070a1497
1 changed files with 10 additions and 5 deletions

View File

@ -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$/, ""),
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));
});