Skip to content

Commit

Permalink
configure theme as documented at https://sphinx-rtd-theme.readthedocs…
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Jan 6, 2024
1 parent 0e99354 commit 1ea7b8c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinxcontrib.spelling'
'sphinxcontrib.spelling',
'sphinx_rtd_theme',
]

# Spelling configuration
Expand Down Expand Up @@ -122,11 +123,7 @@

# -- Options for HTML output ----------------------------------------------

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down

0 comments on commit 1ea7b8c

Please sign in to comment.