docs-matrix-spec/layouts/partials
Kévin Commaille b1f66d1b71
Improve the JS script to highlight the current ToC entry (#1991)
The code relied on an IntersectionOberver, so the ToC was only updated when a heading was in the viewport.
It meant that if we jumped to a part of the text that has no heading, the ToC would still point to the old entry.

The new code looks for the correct heading when the view is scrolled so the correct entry is always selected.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-11-12 22:53:46 +00:00
..
events Fix generated HTML (#1880) 2024-06-20 09:42:40 +01:00
hooks Improve the JS script to highlight the current ToC entry (#1991) 2024-11-12 22:53:46 +00:00
json-schema Fix the rendering of the event format for room versions 1 and 2 (#1883) 2024-06-20 09:39:44 -06:00
openapi Rename custom-formats.yaml to string-formats.yaml (#1977) 2024-10-30 22:30:31 +00:00
added-in.html Enforce consistent vertical spacing between paragraphs in endpoint definitions (#1969) 2024-10-29 15:22:15 +00:00
alert.html Support alerts (notes, warnings, rationales) 2021-01-20 12:34:49 -08:00
breadcrumb.html Update docsy to v0.8.0 (#1699) 2024-02-27 18:12:39 +00:00
changed-in.html Enforce consistent vertical spacing between paragraphs in endpoint definitions (#1969) 2024-10-29 15:22:15 +00:00
footer.html Comments for all the layout templates 2021-01-12 20:45:24 -08:00
navbar.html Update docsy to v0.8.0 (#1699) 2024-02-27 18:12:39 +00:00
sidebar-tree.html Generate ToC with Hugo rather than JavaScript (#1851) 2024-06-11 22:24:23 +01:00
toc.html Generate ToC with Hugo rather than JavaScript (#1851) 2024-06-11 22:24:23 +01:00
version-banner.html Comments for all the layout templates 2021-01-12 20:45:24 -08:00