Update fs list
This commit is contained in:
parent
e64d0dc25b
commit
29070a1497
@ -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));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user