Skip to content

Commit

Permalink
doc/conf: Fix html_theme not defined
Browse files Browse the repository at this point in the history
Zeek side reference: zeek/zeek-docs#206
  • Loading branch information
awelzel committed Aug 28, 2023
1 parent db01d8f commit 4777a8d
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 4777a8d

Please sign in to comment.