forked from zarr-developers/zarr-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.js
More file actions
18 lines (17 loc) · 664 Bytes
/
custom.js
File metadata and controls
18 lines (17 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// handle redirects
(() => {
let anchorMap = {
"installation": "installation.html",
"getting-started": "getting_started.html#getting-started",
"highlights": "getting_started.html#highlights",
"contributing": "contributing.html",
"projects-using-zarr": "getting_started.html#projects-using-zarr",
"acknowledgments": "acknowledgments.html",
"contents": "getting_started.html#contents",
"indices-and-tables": "api.html#indices-and-tables"
}
let hash = window.location.hash.substring(1);
if (hash && hash in anchorMap) {
window.location.replace(anchorMap[hash]);
}
})();