From 513fb1c7e54a0a99cf2c666a80363f0e7613045b Mon Sep 17 00:00:00 2001 From: Dave Welsch Date: Fri, 10 Jan 2025 14:48:55 -0800 Subject: [PATCH] Add collapse/expand controls to left sidebar TOC. Signed-off-by: Dave Welsch --- Docs/_static/aimet-furo.css | 4 +++- Docs/_templates/sidebar/navigation.html | 4 ++-- Docs/index.rst | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Docs/_static/aimet-furo.css b/Docs/_static/aimet-furo.css index 624bcdf024d..0df7b176d2b 100644 --- a/Docs/_static/aimet-furo.css +++ b/Docs/_static/aimet-furo.css @@ -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; } diff --git a/Docs/_templates/sidebar/navigation.html b/Docs/_templates/sidebar/navigation.html index 3f4af219dc6..da374dc9a46 100644 --- a/Docs/_templates/sidebar/navigation.html +++ b/Docs/_templates/sidebar/navigation.html @@ -1,3 +1,3 @@ + {{ furo_navigation_tree }} + \ No newline at end of file diff --git a/Docs/index.rst b/Docs/index.rst index 48ced65ebd8..6ce7bf77818 100644 --- a/Docs/index.rst +++ b/Docs/index.rst @@ -9,6 +9,7 @@ AIMET Documentation .. toctree:: :hidden: :includehidden: + :maxdepth: 2 Quick Start Installation