Skip to content

Commit

Permalink
Merge branch 'topic/awelzel/fix-rtd-doc-build'
Browse files Browse the repository at this point in the history
* topic/awelzel/fix-rtd-doc-build:
  doc/conf: Fix html_theme not defined
  • Loading branch information
awelzel committed Aug 28, 2023
2 parents db01d8f + 4777a8d commit cb715d3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,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'

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 cb715d3

Please sign in to comment.