From 4777a8de89e5534a0ea5bd4b539102aaf342206a Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Mon, 28 Aug 2023 12:27:53 +0200 Subject: [PATCH] doc/conf: Fix html_theme not defined Zeek side reference: zeek/zeek-docs#206 --- doc/conf.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 8cc6a55b..54cd153e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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