docs-matrix-spec/static
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
..
css/fonts Rename assets-hugo directory to assets (#3259) 2022-01-06 10:37:13 +00:00
diagrams Threads: Read receipts & notifications (#1255) 2022-09-28 14:49:25 -06:00
fonts Write font files as binary instead of text (#3039) 2021-08-27 19:17:05 +01:00
icons Render a single page of the spec in Hugo 2021-01-12 15:31:01 -08:00
js Improve the JS script to highlight the current ToC entry (#1991) 2024-11-12 22:53:46 +00:00