Skip to content

Commit

Permalink
fix theme for sphinx-rtd-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Nov 2, 2024
1 parent c2ed3d6 commit 86794e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def install(package):
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx_rtd_theme'
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
Expand Down Expand Up @@ -155,7 +156,7 @@ def install(package):
# -- Options for HTML output ----------------------------------------------
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
html_theme = 'default'
html_theme = 'sphinx_rtd_theme'
else: # Local build. Need to import rtd theme
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
Expand Down

0 comments on commit 86794e9

Please sign in to comment.