Skip to content

Commit 0e8a295

Browse files
committed
Always set html_theme in doc configuration.
Lat version of read the doc do not set a html_theme for us. So we have to always set it. See readthedocs/readthedocs.org#10638
1 parent fe5e6c4 commit 0e8a295

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
# -- General configuration ---------------------------------------------------
2626

27-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
28-
2927
# Add any Sphinx extension module names here, as strings. They can be
3028
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3129
# ones.
@@ -42,9 +40,7 @@
4240
# This pattern also affects html_static_path and html_extra_path.
4341
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
4442

45-
46-
if not on_rtd:
47-
html_theme = 'sphinx_rtd_theme'
43+
html_theme = 'sphinx_rtd_theme'
4844

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

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
breathe
22
exhale
3+
sphinx_rtd_theme

0 commit comments

Comments
 (0)