diff --git a/assets/edit.js b/assets/edit.js deleted file mode 100644 index 50f2819..0000000 --- a/assets/edit.js +++ /dev/null @@ -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 -})(); diff --git a/book.toml b/book.toml index 261fb31..12473bc 100644 --- a/book.toml +++ b/book.toml @@ -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}"