Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Commit

Permalink
Add RTD theme exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardtack committed Apr 5, 2015
1 parent 7b53334 commit f734210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Expand Up @@ -113,6 +113,10 @@
# 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: # only import and set the theme if we're building docs locally
html_theme = 'sphinx_rtd_theme'

# 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 f734210

Please sign in to comment.