mirror of
https://github.com/fablab-nea/wiki.git
synced 2024-11-21 23:32:25 +01:00
Use gitbook edit URL instead of JS hack
This commit is contained in:
parent
83804c6e2e
commit
133265d8ed
|
@ -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
|
||||
})();
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue