Skip to content

Commit

Permalink
docs: use sphinx_rtd_theme on rtd
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Jul 4, 2024
1 parent 20c0b07 commit 4c390e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_theme = "sphinx_rtd_theme"
on_rtd = os.environ.get("READTHEDOCS", None) == "True"

# On RTD we can't import sphinx_rtd_theme, but it will be applied by
Expand All @@ -62,7 +63,6 @@
if not on_rtd:
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

html_theme_options = {
Expand Down

0 comments on commit 4c390e9

Please sign in to comment.