mirror of
https://github.com/fablab-nea/wiki.git
synced 2024-11-22 07:42:26 +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]
|
[output.html]
|
||||||
git-repository-url = "https://github.com/fablab-nea/wiki"
|
git-repository-url = "https://github.com/fablab-nea/wiki"
|
||||||
git-repository-icon = "fa-pencil-square-o"
|
edit-url-template = "https://github.com/fablab-nea/wiki/edit/master/{path}"
|
||||||
additional-js = [
|
|
||||||
"assets/edit.js"
|
|
||||||
]
|
|
||||||
|
|
Loading…
Reference in a new issue