Skip to content

Commit c4dbf1d

Browse files
committed
Sign
1 parent 3361c13 commit c4dbf1d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/conf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,10 @@
116116
# The theme to use for HTML and HTML Help pages. See the documentation for
117117
# a list of builtin themes.
118118

119-
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
119+
import sphinx_rtd_theme
120120

121-
if not on_rtd: # only import and set the theme if we're building docs locally
122-
import sphinx_rtd_theme
123-
124-
html_theme = "sphinx_rtd_theme"
125-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
121+
html_theme = "sphinx_rtd_theme"
122+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
126123

127124
# Theme options are theme-specific and customize the look and feel of a theme
128125
# further. For a list of options available for each theme, see the

0 commit comments

Comments
 (0)