Merge pull request #7443 from mgeier/theme-options-toctree

Add globaltoc_collapse and globaltoc_includehidden options
This commit is contained in:
Takeshi KOMIYA authored and GitHub committed 2020-04-16 23:11:28 +09:00
commit 1e3ce31b03
3 files changed
+18 -1

No files matched your search

+15
View File
@@ -155,6 +155,21 @@ These themes are:
previous/next page using the keyboard's left and right arrows. Defaults to
``False``.
- **globaltoc_collapse** (true or false): Only expand subsections
of the current document in ``globaltoc.html``
(see :confval:`html_sidebars`).
Defaults to ``True``.
.. versionadded:: 3.1
- **globaltoc_includehidden** (true or false): Show even those
subsections in ``globaltoc.html`` (see :confval:`html_sidebars`)
which have been included with the ``:hidden:`` flag of the
:rst:dir:`toctree` directive.
Defaults to ``False``.
.. versionadded:: 3.1
**alabaster**
`Alabaster theme`_ is a modified "Kr" Sphinx theme from @kennethreitz
(especially as used in his Requests project), which was itself originally