Merge "Add a tox environment to build the docs"
This commit is contained in:
commit
5c1cebd4cf
@ -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
1
test-requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
Sphinx
|
9
tox.ini
9
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user