Skip to content

Commit

Permalink
fix: use sphinx_rtd_theme correctly in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
desilinguist committed Sep 15, 2023
1 parent 45f4db7 commit 5778f26
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"sphinx_rtd_theme",
"sphinx_design",
]

Expand Down Expand Up @@ -112,19 +113,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
for_dash = os.environ.get("DASH", None) == "True"
if not on_rtd and not for_dash:
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
elif for_dash:
import alabaster

html_theme = "alabaster"
html_theme_path = [alabaster.get_path()]
html_theme_options = {"nosidebar": True}
html_theme = "sphinx_rtd_theme"

# copy over any static assets
html_static_path = ["assets"]
Expand Down

0 comments on commit 5778f26

Please sign in to comment.