From 2cecdfdb6653879235f695152246cffb534d1b99 Mon Sep 17 00:00:00 2001 From: Ammar Askar Date: Sun, 22 Mar 2015 03:15:40 +0500 Subject: [PATCH] Use default theme for readthedocs --- docs/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 3d6e322..e84a083 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -117,7 +117,11 @@ todo_include_todos = True # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'alabaster' +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' +if on_rtd: + html_theme = 'default' +else: + html_theme = 'alabaster' # 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