From fa95dc64e8b552d7043d7b7e120bb4d422649f9e Mon Sep 17 00:00:00 2001 From: Jacob Welsh Date: Tue, 30 Sep 2014 15:36:37 -0500 Subject: [PATCH] Fix non-readthedocs sphinx build Note, this means you have to set the environment variable READTHEDOCS=True to use the RTD theme, which appears to have been the intent. --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index eb7f4b2..4f47c3b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -95,7 +95,7 @@ pygments_style = 'sphinx' # -- Options for HTML output ---------------------------------------------- -if not os.environ.get('READTHEDOCS', None) == 'True': +if os.environ.get('READTHEDOCS', None) == 'True': import sphinx_rtd_theme html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]