Skip to content
This repository was archived by the owner on Aug 23, 2018. It is now read-only.

Commit 24e9711

Browse files
committed
change sphinx theme for rtds
1 parent 0eb8163 commit 24e9711

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/conf.py

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

9292
# The theme to use for HTML and HTML Help pages. See the documentation for
9393
# a list of builtin themes.
94-
html_theme = 'nature'
94+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
95+
if on_rtd:
96+
html_theme = 'default'
97+
else:
98+
html_theme = 'nature'
9599

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

0 commit comments

Comments
 (0)