Skip to content

Commit

Permalink
Change theme env.
Browse files Browse the repository at this point in the history
  • Loading branch information
lofyer committed Mar 21, 2015
1 parent 4c88f3f commit 95b22b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import sys
import os

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -105,6 +107,10 @@
# a list of builtin themes.
# html_theme = 'haiku'
html_theme = 'default'
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()]

# 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
Expand Down

0 comments on commit 95b22b6

Please sign in to comment.