Skip to content

Commit 8705091

Browse files
committed
Fixed issue with mixed theme on RTD
1 parent 37648d3 commit 8705091

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@
9999

100100
# The theme to use for HTML and HTML Help pages. See the documentation for
101101
# a list of builtin themes.
102-
html_theme = 'alabaster'
102+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
103+
if not on_rtd: # only import and set the theme if we're building docs locally
104+
import sphinx_rtd_theme
105+
html_theme = 'sphinx_rtd_theme'
106+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
103107

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

0 commit comments

Comments
 (0)