Use gitbook edit URL instead of JS hack

This commit is contained in:
Simon Bruder 2021-10-16 12:59:12 +02:00
parent 83804c6e2e
commit 133265d8ed
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 1 additions and 14 deletions

View file

@ -1,10 +0,0 @@
(() => {
let editLink = document.getElementById("git-repository-button").parentElement
const relativeFile = location
.pathname
.split("/")
.slice(-path_to_root.split("/").length)
.join("/")
.replace(/\.html$/, ".md")
editLink.href = editLink.href + "/edit/master/src/" + relativeFile
})();

View file

@ -8,7 +8,4 @@ title = "Wiki FabLab Bad Windsheim"
[output.html]
git-repository-url = "https://github.com/fablab-nea/wiki"
git-repository-icon = "fa-pencil-square-o"
additional-js = [
"assets/edit.js"
]
edit-url-template = "https://github.com/fablab-nea/wiki/edit/master/{path}"