We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7a5543 commit e39e092Copy full SHA for e39e092
docs/conf.py
@@ -89,17 +89,10 @@
89
#
90
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
91
92
-if not on_rtd: # only import and set the theme if we're building docs locally
93
- try:
94
- import sphinx_rtd_theme
95
-
96
- html_theme = "sphinx_rtd_theme"
97
- html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
98
- except:
99
- html_theme = "default"
100
- html_theme_path = ["."]
101
-else:
102
+import sphinx_rtd_theme
+
+html_theme = "sphinx_rtd_theme"
+html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
103
104
# Add any paths that contain custom static files (such as style sheets) here,
105
# relative to this directory. They are copied after the builtin static files,
0 commit comments