From 2ee8a16956a026d76bfd60ffe18ef6a805c33f19 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 18 Oct 2023 19:58:37 -0700 Subject: [PATCH] Sphinx: Limit <7.2 (#1541) * Sphinx: Limit <7.2 Limit the upper version, the RTD theme seems not ready yet. * RTD: Default Theme Changed? --- docs/requirements.txt | 2 +- docs/source/conf.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 62f525b92c..9f3c2ba702 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -6,7 +6,7 @@ numpy>=1.15 pygments recommonmark scipy -sphinx>=5.3 +sphinx>=5.3,<7.2 sphinx-copybutton sphinx-design sphinx_rtd_theme>=1.1.1 diff --git a/docs/source/conf.py b/docs/source/conf.py index a97f5e03b1..668ef4c8ae 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -17,6 +17,7 @@ import subprocess from recommonmark.parser import CommonMarkParser +import sphinx_rtd_theme # import sys # sys.path.insert(0, os.path.abspath('.')) @@ -58,8 +59,6 @@ shell=True) if not on_rtd: - import sphinx_rtd_theme - html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # Add any paths that contain templates here, relative to this directory. @@ -117,7 +116,9 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -# html_theme = 'alabaster' +html_theme = 'sphinx_rtd_theme' + +numfig = True # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the