From 942a6ec8f864db12d1672e7d09a80754e4981151 Mon Sep 17 00:00:00 2001 From: Martin van der Schelling <61459087+mpvanderschelling@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:40:36 -0500 Subject: [PATCH] same behaviour as gh-pages build --- docs/source/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 0e2da4cd..ed6f0391 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -106,7 +106,9 @@ # Source: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_theme_path on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: - html_theme = 'shpinx_rtd_theme' + import sphinx_rtd_theme + html_theme = 'sphinx_rtd_theme' + html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] else: # Source: https://sphinx-rtd-theme.readthedocs.io/en/stable/index.html # Requires installation of Python package 'sphinx_rtd_theme'