Skip to content

Commit

Permalink
DOC: Don't limit TOC depth but hide main TOC by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Jan 14, 2023
1 parent 729d98a commit 8c8f153
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

----

.. raw:: html

<details>
<summary>click here to see full table of contents</summary>

.. NB: "--" is not replaced in :caption:!
.. toctree::
:caption: Part One – Documentation
:maxdepth: 2

intro
usage
Expand All @@ -22,7 +26,6 @@
.. toctree::
:caption: Part Two – Showcase
:numbered:
:maxdepth: 1

showcase/index
showcase/basic-formatting
Expand All @@ -43,3 +46,7 @@
:ref:`genindex`

:ref:`py-modindex`

.. raw:: html

</details>

0 comments on commit 8c8f153

Please sign in to comment.