Use default theme for readthedocs

This commit is contained in:
Ammar Askar committed 2015-03-22 03:15:40 +05:00
1 parent 37fd9cee3b
commit 2cecdfdb66
1 file changed
+4
+4
View File
@@ -117,6 +117,10 @@ todo_include_todos = True
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
html_theme = 'default'
else:
html_theme = 'alabaster' html_theme = 'alabaster'
# Theme options are theme-specific and customize the look and feel of a theme # Theme options are theme-specific and customize the look and feel of a theme