Closed vsajip closed 5 years ago
Fixed #5: Updated style to only highlight level 1 TOC entries.
This bit is the same as the original Guzzle theme, IIRC. You're suggesting to change the selector part from li.current
to li.toctree-l1.current
, right? Not sure if it’s actively bad the way it is.
Original changes by Vinay Sajip (Bitbucket: vinay.sajip, GitHub: vsajip).
changed state from "new" to "resolved"
Original report by Indian Sunset (Bitbucket: idnsunset, GitHub: idnsunset).
When subdirectories are used for a project, supposing the source directory structure as below:
Contents of
index.rst
:Contents of
subdir/index.rst
:The global TOC generated in
doc2.html
would be like:
Please notice class attribute
current
in<li>
and<a>
tag for current document (subdir/doc2.html
) and it;s parent (subdir/index.html
). When you are atsubdir/doc2.html
, the title link of bothsubdir/doc2.html
andsubdir/index.html
in TOC get highlighted assizzle.css
defines:I think you want highlight
toctree-l1
only, right? If true, some modification needed here.