Skip to content

Commit 027f7d6

Browse files
Reinstated the RTD Sphinx Theme for documentation
Sometime in 2023 the default theme on Read-the-Docs was changed to Alabaster. This change enforces the old theme (sphinx_rtd_theme).
1 parent 18b532a commit 027f7d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3131
# ones.
3232
extensions = [
33+
"sphinx_rtd_theme"
3334
]
3435

3536
# Add any paths that contain templates here, relative to this directory.
@@ -41,8 +42,7 @@
4142
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
4243

4344

44-
if not on_rtd:
45-
html_theme = 'sphinx_rtd_theme'
45+
html_theme = 'sphinx_rtd_theme'
4646

4747
# Add any paths that contain custom static files (such as style sheets) here,
4848
# relative to this directory. They are copied after the builtin static files,

0 commit comments

Comments
 (0)