Skip to content

Commit 5778f26

Browse files
committed
fix: use sphinx_rtd_theme correctly in docs.
1 parent 45f4db7 commit 5778f26

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

doc/conf.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"sphinx.ext.viewcode",
4141
"sphinx.ext.mathjax",
4242
"sphinx.ext.napoleon",
43+
"sphinx_rtd_theme",
4344
"sphinx_design",
4445
]
4546

@@ -112,19 +113,7 @@
112113

113114
# The theme to use for HTML and HTML Help pages. See the documentation for
114115
# a list of builtin themes.
115-
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
116-
for_dash = os.environ.get("DASH", None) == "True"
117-
if not on_rtd and not for_dash:
118-
import sphinx_rtd_theme
119-
120-
html_theme = "sphinx_rtd_theme"
121-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122-
elif for_dash:
123-
import alabaster
124-
125-
html_theme = "alabaster"
126-
html_theme_path = [alabaster.get_path()]
127-
html_theme_options = {"nosidebar": True}
116+
html_theme = "sphinx_rtd_theme"
128117

129118
# copy over any static assets
130119
html_static_path = ["assets"]

0 commit comments

Comments
 (0)