This commit is contained in:
parent
65139bf8d0
commit
44431c4e66
71 changed files with 2262 additions and 1173 deletions
|
|
@ -6,7 +6,7 @@ const outputFile = path.join(docsDir, "index.html");
|
|||
|
||||
const dateFormatter = new Intl.DateTimeFormat("en-US", {
|
||||
dateStyle: "medium",
|
||||
timeStyle: "short",
|
||||
timeStyle: "short"
|
||||
});
|
||||
|
||||
function escapeHtml(value) {
|
||||
|
|
@ -71,7 +71,7 @@ async function collectDocsFiles(rootDir, currentDir = rootDir, acc = []) {
|
|||
relativePath,
|
||||
category: relativePath.includes("/") ? relativePath.split("/")[0] : "root",
|
||||
sizeBytes: stats.size,
|
||||
modifiedAt: stats.mtime,
|
||||
modifiedAt: stats.mtime
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue