Skip to content

Commit 323d736

Browse files
committed
Add a documentation env to tox.ini
Run "tox -e doc" to build the documentation in doc/_build.
1 parent 6b99d52 commit 323d736

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = {py26,py27,py33,py34,py35,pypy}-{base,optional}
2+
envlist = {py26,py27,py33,py34,py35,pypy}-{base,optional},doc
33

44
[testenv]
55
deps =
@@ -11,7 +11,12 @@ deps =
1111
base: webencodings
1212
py26-base: ordereddict
1313
optional: -r{toxinidir}/requirements-optional.txt
14+
doc: Sphinx
1415

1516
commands =
1617
{envbindir}/py.test
1718
{toxinidir}/flake8-run.sh
19+
20+
[testenv:doc]
21+
changedir = doc
22+
commands = sphinx-build -b html . _build

0 commit comments

Comments
 (0)