Skip to content

Commit 99d3ae1

Browse files
authored
fix: update relative paths of README.md files (#113)
1 parent e9b0f01 commit 99d3ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/prepare-gh-pages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function zipDirectory(sourceDir, outPath) {
5050
}
5151

5252
function rewriteLinks(file, path) {
53-
let content = `---\npermalink: ${path ? path.replace(".md", ".html") : "index.html"}\n---\n\n${readFileSync(file, { encoding: "utf8"})}`;
53+
let content = `---\npermalink: ${path ? `build/${path.replace(".md", ".html")}` : "index.html"}\n---\n\n${readFileSync(file, { encoding: "utf8"})}`;
5454
content = content.replace(/steps\/(\d{2})/g, "build/$1");
5555
content = content.replace(/\.\.\/(\d{2})/g, "../$1");
5656
content = content.replace(/README\.md/g, "README.html");

0 commit comments

Comments
 (0)