Skip to content

Commit

Permalink
Updates book.json
Browse files Browse the repository at this point in the history
Auto commit by GitBook Editor
  • Loading branch information
jamuhl committed Jun 2, 2017
1 parent ddf443b commit 1bf7418
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Empty file added assets/js/README.md
Empty file.
9 changes: 9 additions & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var target = window.location.hash;

window.location.hash = "";

$(document).ready(function() {
setTimeout(function() {
document.location.hash = target;
}, 50);
});
7 changes: 5 additions & 2 deletions book.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plugins": [ "edit-link", "theme-api", "jsfiddle", "custom-favicon", "simple-page-toc" ],
"plugins": [ "addcssjs", "edit-link", "theme-api", "jsfiddle", "custom-favicon", "simple-page-toc", "anchors" ],
"pluginsConfig": {
"edit-link": {
"base": "https://github.com/i18next/react-i18next-gitbook/edit/master/",
Expand All @@ -25,6 +25,9 @@
"simple-page-toc": {
"maxDepth": 3,
"skipFirstH1": true
}
},
"addcssjs": {
"js": ["assets/js/custom.js"]
}
}
}

0 comments on commit 1bf7418

Please sign in to comment.