1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

docs(bowser): auto-generate docs

This commit is contained in:
Denis Demchenko
2019-07-16 22:21:01 +03:00
parent dcadd16ed7
commit f3c6029f0f
13 changed files with 802 additions and 210 deletions

12
docs/scripts/nav.js Normal file
View File

@@ -0,0 +1,12 @@
function scrollToNavItem() {
var path = window.location.href.split('/').pop().replace(/\.html/, '');
document.querySelectorAll('nav a').forEach(function(link) {
var href = link.attributes.href.value.replace(/\.html/, '');
if (path === href) {
link.scrollIntoView({block: 'center'});
return;
}
})
}
scrollToNavItem();