1
0

Update fs list

This commit is contained in:
Zef Hemel 2022-07-15 12:57:05 +02:00
parent e64d0dc25b
commit 29070a1497

View File

@ -15,10 +15,15 @@ async function getFiles(dir) {
const rootDir = resolve("docs"); const rootDir = resolve("docs");
getFiles(rootDir).then((files) => { getFiles(rootDir).then((files) => {
files = files.map((file) => ({ files = files
name: file.substring(rootDir.length + 1).replace(/\.md$/, ""), .map((file) => ({
lastModified: 0, name: file
perm: "ro", .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)); console.log(JSON.stringify(files, null, 2));
}); });