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