Skip to content

Commit 622e2cc

Browse files
committed
fix: Rewrite README links
1 parent f761316 commit 622e2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/builder/prepare-gh-pages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function getSteps(tutorialDir) {
5454
function rewriteLinks(file) {
5555
let permalink = file.split("dist/")[1].replace(".md", ".html");
5656
let content = `---\npermalink: ${permalink}\n---\n\n${readFileSync(file, { encoding: "utf8"})}`;
57-
content = content.replace(/README\.md/g, "README.html");
57+
content = content.replace(/README\.md/g, "index.html");
5858
content = content.replace(/\.\/packages\//g, "./");
5959
content = content.replace(/\[LICENSE\]\([\.\/\w]*\)/g, "[LICENSE](https://github.com/UI5/tutorials/blob/-/LICENSE)");
6060
writeFileSync(file, content, { encoding: "utf8" });

0 commit comments

Comments
 (0)