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.
This commit is contained in:
Jacob Welsh 2014-09-30 15:36:37 -05:00
parent bdd29df7c7
commit fa95dc64e8

View file

@ -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()]