Fixup styling for rtd

This commit is contained in:
James Page 2016-05-26 12:14:55 +01:00
parent c761de149f
commit 8d4ddacada
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ man_pages = []
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'nature'
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
html_theme = 'default'
else:
html_theme = 'nature'
# 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