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

View File

@ -15,15 +15,10 @@ async function getFiles(dir) {
const rootDir = resolve("docs");
getFiles(rootDir).then((files) => {
files = files
.map((file) => ({
files = files.map((file) => ({
name: file.substring(rootDir.length + 1).replace(/\.md$/, ""),
lastModified: 0,
perm: "ro",
}))
.filter(
(pageMeta) =>
!pageMeta.name.startsWith("_") && !pageMeta.name.startsWith(".")
);
}));
console.log(JSON.stringify(files, null, 2));
});