Skip to content

Commit e39e092

Browse files
committed
doc fix
1 parent a7a5543 commit e39e092

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

docs/conf.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,10 @@
8989
#
9090
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
9191

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-
html_theme_path = ["."]
92+
import sphinx_rtd_theme
93+
94+
html_theme = "sphinx_rtd_theme"
95+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
10396

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

0 commit comments

Comments
 (0)