Skip to content

Commit

Permalink
Add collapse/expand controls to left sidebar TOC.
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Welsch <dwelsch@expertsupport.com>
  • Loading branch information
dwelsch-esi committed Jan 10, 2025
1 parent 545f33b commit 513fb1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Docs/_static/aimet-furo.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
display: none;
}

/* Hide level 3 entries */
.toctree-l3 {
display: none;
}

[for^="toctree-checkbox-"], [id^="toctree-checkbox-"] {
/* Hide collapse arrow on level 2 entries */
li.toctree-l2 [for^="toctree-checkbox-"] {
visibility: hidden;
}

Expand Down
4 changes: 2 additions & 2 deletions Docs/_templates/sidebar/navigation.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="sidebar-tree">
{{ toctree(includehidden=True, collapse=False, titles_only=True, maxdepth=2) }}
</div>
{{ furo_navigation_tree }}
</div>
1 change: 1 addition & 0 deletions Docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ AIMET Documentation
.. toctree::
:hidden:
:includehidden:
:maxdepth: 2

Quick Start <install/quick-start>
Installation <install/index>
Expand Down

0 comments on commit 513fb1c

Please sign in to comment.