mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 13:19:54 +01:00
chore(readme): rewrite links
This commit is contained in:
@@ -13,7 +13,11 @@ const docsDir = join(rootDir, "docs");
|
||||
async function handleBaseFile() {
|
||||
// Read the README at root level.
|
||||
const readmePath = join(rootDir, "README.md");
|
||||
const readme = await readFile(readmePath, "utf-8");
|
||||
let readme = await readFile(readmePath, "utf-8");
|
||||
|
||||
// Rewrite relative links.
|
||||
readme = readme.replaceAll("./docs/", "./");
|
||||
readme = readme.replaceAll("./README.md", "../README.md");
|
||||
|
||||
// Copy it into docs.
|
||||
const outputPath = join(docsDir, "README.md");
|
||||
|
||||
Reference in New Issue
Block a user