Use gitbook edit URL instead of JS hack

pull/1/head
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}"