Skip to content

Commit 12ff8b9

Browse files
committed
fix conf.py to use a different theme for local builds
1 parent f484185 commit 12ff8b9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/conf.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,11 @@
107107
# -- Options for HTML output ----------------------------------------------
108108
# The theme to use for HTML and HTML Help pages. See the documentation for
109109
# a list of builtin themes.
110-
import sphinx_rtd_theme
111-
112-
html_theme = "sphinx_rtd_theme"
113-
114-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
115-
#html_theme = 'bizstyle'
110+
on_rtd = os.environ.get('READTHEDOCS') == 'True'
111+
if on_rtd:
112+
html_theme = 'default'
113+
else:
114+
html_theme = 'bizstyle'
116115

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

0 commit comments

Comments
 (0)