[tox] Update doc testenv to account for documentation restructuring
* Build doc from `doc` directory.
* Use `sphinx-build` directly instead of `make` as this now works and allows
to build within .tox temporary environment (instead of doc/_build),
preferable for a "test" action.
Related to #5447161.
--- a/tox.ini Thu Jul 02 11:46:57 2015 +0200
+++ b/tox.ini Wed Jul 08 09:37:06 2015 +0200
@@ -47,6 +47,9 @@
[testenv:wsgi]
[testenv:doc]
-changedir = doc/book/en
-deps = sphinx
-commands = make html
+changedir = doc
+whitelist_externals =
+ sphinx-build
+deps =
+ sphinx
+commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html