8000 Fixed table of contents highlighting for active anchor links · binbashdevops/mkdocs-material@45aff3c · GitHub
[go: up one dir, main page]

Skip to content

Commit 45aff3c

Browse files
committed
Fixed table of contents highlighting for active anchor links
1 parent 82b0ea8 commit 45aff3c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

material/assets/javascripts/bundle.6ced434e.min.js renamed to material/assets/javascripts/bundle.15ed33ca.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/javascripts/bundle.6ced434e.min.js.map renamed to material/assets/javascripts/bundle.15ed33ca.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"assets/javascripts/bundle.js": "assets/javascripts/bundle.6ced434e.min.js",
3-
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.6ced434e.min.js.map",
2+
"assets/javascripts/bundle.js": "assets/javascripts/bundle.15ed33ca.min.js",
3+
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.15ed33ca.min.js.map",
44
"assets/javascripts/vendor.js": "assets/javascripts/vendor.08c56446.min.js",
55
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.08c56446.min.js.map",
66
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.8c7e0a7e.min.js",

material/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ <h1>{{ page.title | d(config.site_name, true)}}</h1>
185185
</div>
186186
{% block scripts %}
187187
<script src="{{ 'assets/javascripts/vendor.08c56446.min.js' | url }}"></script>
188-
<script src="{{ 'assets/javascripts/bundle.6ced434e.min.js' | url }}"></script>
188+
<script src="{{ 'assets/javascripts/bundle.15ed33ca.min.js' | url }}"></script>
189189
{%- set translations = {} -%}
190190
{%- for key in [
191191
"clipboard.copy",

src/assets/javascripts/components/toc/anchor/react/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function watchAnchorList(
101101
/* Compute necessary adjustment for header */
102102
const adjust$ = header$
103103
.pipe(
104-
map(header => 18 + header.height)
104+
map(header => 24 + header.height)
105105
)
106106

107107
/* Compute partition of previous and next anchors */

0 commit comments

Comments
 (0)
0