Skip to content

Commit

Permalink
sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
damouse committed Jun 21, 2015
1 parent 6a3addf commit c9e0c02
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@

# -- General configuration ------------------------------------------------

try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
html_theme = 'default'
sys.stderr.write('Failed to import sphinx_rtd_theme!')
import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]


# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
Expand Down

0 comments on commit c9e0c02

Please sign in to comment.