Update docs of body-end partial

The ToC is now generated by Hugo.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-11-07 17:24:08 +01:00
parent 74e8be3fd9
commit f1cad5bf3d
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D

View file

@ -4,14 +4,9 @@
We're using it here to:
1) include the JS that generates the table of contents. It would be better
to generate the table of contents as part of the Hugo build process, but
that doesn't work nicely with the way we want to author client-server modules
as separate files.
2) highlight and scroll the ToC in the sidebar to match the place we are at
1) highlight and scroll the ToC in the sidebar to match the place we are at
in the document.
*/}}
<script defer language="javascript" type="text/javascript" src="{{ "js/toc.js" | urlize | relURL }}"></script>
<script defer language="javascript" type="text/javascript" src="{{ "js/toc.js" | relURL }}"></script>