From dcfd9be5fe692fe94360fe8a8fc075699abbfd23 Mon Sep 17 00:00:00 2001 From: Juliana Fajardini Date: Fri, 29 Nov 2024 17:20:15 -0300 Subject: [PATCH] docs: add sphinx_toolbox options This enables the usage of collapsible sections for the docs. --- doc/userguide/conf.py | 4 +++- doc/userguide/requirements.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/userguide/conf.py b/doc/userguide/conf.py index 48d5e24dad26..19475e5ff547 100644 --- a/doc/userguide/conf.py +++ b/doc/userguide/conf.py @@ -38,7 +38,9 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [] +extensions = [ + 'sphinx_toolbox.collapse', +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/doc/userguide/requirements.txt b/doc/userguide/requirements.txt index 483a4e9600bd..1eb1aff42eaa 100644 --- a/doc/userguide/requirements.txt +++ b/doc/userguide/requirements.txt @@ -1 +1,2 @@ sphinx_rtd_theme +sphinx_toolbox