Skip to content

Commit

Permalink
fix sphinx theme
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Nov 10, 2015
1 parent a06e7ed commit 727d597
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,9 @@
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = 'standard'
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()]

# otherwise, readthedocs.org uses their theme by default, so no
# need to specify it

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 All @@ -153,7 +147,7 @@
#html_theme_options = {'homepage': init_sphinx.url}

# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = [get_path_sphinx_themes()]
#html_theme_path = [get_path_sphinx_themes()]



Expand Down

0 comments on commit 727d597

Please sign in to comment.