Skip to content

Commit

Permalink
use the wiki Home page as entry point instead of the repo README
Browse files Browse the repository at this point in the history
  • Loading branch information
skaldarnar committed Oct 30, 2023
1 parent 2789867 commit fae7b47
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
loadSidebar: true,
autoHeader: true,
search: 'auto',
homepage: 'https://raw.githubusercontent.com/MovingBlocks/Terasology/develop/README.md',
//homepage: 'https://raw.githubusercontent.com/MovingBlocks/Terasology/develop/README.md',
homepage: 'Home.md',
pagination: {
crossChapter: true,
crossChapterText: true,
Expand All @@ -33,14 +34,14 @@
EditOnGithubPlugin.create(
"https://github.com/MovingBlocks/Terasology/tree/develop/docs/"
),
function (hook) {
// this "fixes" the relative links in the README which is loaded from remote (see 'homepage' above)
hook.beforeEach(function (content) {
return content
.replace(new RegExp("https://raw.githubusercontent.com/MovingBlocks/Terasology/develop/docs/"), "")
.replace(new RegExp("./docs/"), "");
})
}
// function (hook) {
// // this "fixes" the relative links in the README which is loaded from remote (see 'homepage' above)
// hook.beforeEach(function (content) {
// return content
// .replace(new RegExp("https://raw.githubusercontent.com/MovingBlocks/Terasology/develop/docs/"), "")
// .replace(new RegExp("./docs/"), "");
// })
// }
],
}
</script>
Expand Down

0 comments on commit fae7b47

Please sign in to comment.