diff --git a/docs/conf.py b/docs/conf.py index f835f8e0..19da2681 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,8 @@ from crate.theme.rtd.conf.theme import * +# Note: TOC toggle icons are enabled by default in the theme. +# To disable: html_theme_options["toc_toggle_icons"] = "false" + # Mimic some bits of the RTD context being propagated to its Sphinx builder. # https://github.com/readthedocs/readthedocs.org/blob/main/readthedocs/doc_builder/backends/sphinx.py html_context.update({ diff --git a/src/crate/theme/rtd/crate/sidebar.html b/src/crate/theme/rtd/crate/sidebar.html index ebe24fe3..2537458f 100644 --- a/src/crate/theme/rtd/crate/sidebar.html +++ b/src/crate/theme/rtd/crate/sidebar.html @@ -1,4 +1,8 @@ +{% if theme_toc_toggle_icons == 'true' %} +