Skip to content

Commit

Permalink
Merge pull request #139 from rcoup/doc-build-fix
Browse files Browse the repository at this point in the history
Include RTD theme for Sphinx 1.4.0+
  • Loading branch information
sigmavirus24 committed Apr 22, 2016
2 parents 368343c + fc2d309 commit a140a0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,15 @@

# -- Options for HTML output ----------------------------------------------

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()]

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

# 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
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ commands = flake8 {posargs} requests_toolbelt
[testenv:docs]
deps =
sphinx>=1.3.0
sphinx_rtd_theme
.
commands =
sphinx-build -E -c docs -b html docs/ docs/_build/html
Expand Down

0 comments on commit a140a0e

Please sign in to comment.