diff --git a/assets/hb/modules/docs/js/nav.ts b/assets/hb/modules/docs/js/nav.ts index c7a94315..76e465e2 100644 --- a/assets/hb/modules/docs/js/nav.ts +++ b/assets/hb/modules/docs/js/nav.ts @@ -23,4 +23,7 @@ } active(link) + document.addEventListener('DOMContentLoaded', () => { + document.querySelector('.hb-docs-nav')?.scrollTo(0, link.offsetTop) + }) })()