You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
1 year ago
..
events Fix generated HTML (#1880) 2 years ago
hooks Improve the JS script to highlight the current ToC entry (#1991) 1 year ago
json-schema Fix the rendering of the event format for room versions 1 and 2 (#1883) 2 years ago
openapi Rename `custom-formats.yaml` to `string-formats.yaml` (#1977) 1 year ago
added-in.html Enforce consistent vertical spacing between paragraphs in endpoint definitions (#1969) 1 year ago
alert.html Support alerts (notes, warnings, rationales) 5 years ago
breadcrumb.html Update docsy to v0.8.0 (#1699) 2 years ago
changed-in.html Enforce consistent vertical spacing between paragraphs in endpoint definitions (#1969) 1 year ago
footer.html Comments for all the layout templates 5 years ago
navbar.html Update docsy to v0.8.0 (#1699) 2 years ago
sidebar-tree.html Generate ToC with Hugo rather than JavaScript (#1851) 2 years ago
toc.html Generate ToC with Hugo rather than JavaScript (#1851) 2 years ago
version-banner.html Comments for all the layout templates 5 years ago