Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/awelzel/wrangling-html-theme'
Browse files Browse the repository at this point in the history
* origin/topic/awelzel/wrangling-html-theme:
  conf: Add sphinx_rtd_theme to extensions, remove env based import
  • Loading branch information
awelzel committed Aug 24, 2023
2 parents cc5db09 + 11b3148 commit 01d47f7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,7 @@

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

# 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'

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'

html_last_updated_fmt = '%B %d, %Y'

Expand Down

0 comments on commit 01d47f7

Please sign in to comment.