Skip to content

Commit 26d6108

Browse files
jessetanBlendify
authored andcommitted
Fix scrolling to active item in sidebar on load (#214) (#688)
1 parent a42c4d7 commit 26d6108

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ master
1111
New Features
1212
-------------
1313

14+
1415
Fixes
1516
-----
1617

18+
* Fix scrolling to active item in sidebar on load (#214)
1719
* Style caption link for code and literal blocks
1820
* Fix inconsistent font size and line height for autodoc "raises" and "returns" (#267)
1921

js/theme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ function ThemeNav () {
152152
link.closest('li.toctree-l2').addClass('current');
153153
link.closest('li.toctree-l3').addClass('current');
154154
link.closest('li.toctree-l4').addClass('current');
155+
link[0].scrollIntoView();
155156
}
156157
}
157158
catch (err) {

0 commit comments

Comments
 (0)