Skip to content

Commit

Permalink
🎨 Use Read the Docs theme when running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanmiller committed May 29, 2015
1 parent 87871a4 commit 63e3855
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,20 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'

# This allows sphinx_rtd_theme to work locally
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

def setup(app):
app.add_stylesheet('custom.css')
app.add_javascript('wedc.js')

#html_theme = 'default'

# 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 63e3855

Please sign in to comment.