Merge "Add a tox environment to build the docs"

This commit is contained in:
Jenkins 2015-09-08 07:35:46 +00:00 committed by Gerrit Code Review
commit 5c1cebd4cf
3 changed files with 13 additions and 2 deletions

View File

@ -15,6 +15,9 @@
import sys
import os
# Always use the default theme for Readthedocs
RTD_NEW_THEME = 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.
@ -109,7 +112,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'classic'
# 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

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
Sphinx

View File

@ -1,5 +1,5 @@
[tox]
envlist = heka,lma_collector
envlist = heka,lma_collector,docs
skipsdist = True
[testenv:heka]
@ -27,3 +27,10 @@ commands =
mkdir -p {toxinidir}/.bundled_gems
bundle install
bundle exec rake test
[testenv:docs]
deps = -r{toxinidir}/test-requirements.txt
changedir = {toxinidir}/doc
whitelist_externals = make
commands =
make clean html SPHINXOPTS=-W