Skip to content

Commit a88a86e

Browse files
committed
Documented dependency on class "toctree-l1" in response to review <Ravenbrook/mps#166 (comment)>.
1 parent 63ec355 commit a88a86e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mps/manual/source/_templates/layout.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414

1515
<ul>
1616

17-
<li class="toctree-11">
17+
{# The class toctree-l1 seems to correspond to list items generated
18+
by a Sphinx toctree directive that are at depth 1. I have not
19+
found documented confirmation of this but it is confirmed
20+
`_toctree_add_classes
21+
<https://github.com/sphinx-doc/sphinx/blob/bb74aec2b6aa1179868d83134013450c9ff9d4d6/sphinx/environment/adapters/toctree.py#L403-L430>`_
22+
in the Sphinx source code. If the list layout goes wonky, this
23+
might be to blame. RB 2023-10-20. #}
24+
25+
<li class="toctree-l1">
1826

1927
<a class="reference internal" href="{{pathto('genindex.html', 1)}}">Index</a>
2028

0 commit comments

Comments
 (0)