Update fs list
parent
e64d0dc25b
commit
29070a1497
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue