Skip to content

Commit 1d82690

Browse files
committed
using default theme when building in readthedocs
1 parent 8697eb8 commit 1d82690

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/conf.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,16 @@
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 = 'agogo'
95-
html_theme = 'sphinxdoc'
96-
#html_theme = 'scrolls'
97-
#html_theme = 'nature'
98-
#html_theme = 'haiku'
99-
#html_theme = 'pyramid'
94+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
95+
if on_rtd:
96+
html_theme = 'default'
97+
else:
98+
#html_theme = 'agogo'
99+
html_theme = 'sphinxdoc'
100+
#html_theme = 'scrolls'
101+
#html_theme = 'nature'
102+
#html_theme = 'haiku'
103+
#html_theme = 'pyramid'
100104

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

0 commit comments

Comments
 (0)