Skip to content

Commit 5028fae

Browse files
committed
Add a Gitbook plugin to allow correct loading of doc page hash URLs.
Per #345, navigating to a docs page URL that includes a hash anchor causes the page to snap back up to the top. This is due to Gitbook showing the sidebar. The "anker-enable" plugin hacks around that by setting a short timeout on docs page load, and then changing the page location back to the hash URL. This appears to work around the issue.
1 parent ea78212 commit 5028fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"structure": {
44
"summary": "docs/README.md"
55
},
6-
"plugins": ["edit-link", "prism", "-highlight", "github"],
6+
"plugins": ["edit-link", "prism", "-highlight", "github", "anker-enable"],
77
"pluginsConfig": {
88
"edit-link": {
99
"base": "https://github.com/reactjs/redux/tree/master",

0 commit comments

Comments
 (0)