diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 00000000..e1b45749 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,2 @@ +sphinx>=1.6.2 +openstackdocstheme>=1.11.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index ca6c373e..447ef04a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,7 +3,6 @@ pep8==1.5.7 pyflakes==0.8.1 flake8==2.2.4 docutils>=0.11 # OSI-Approved Open Source, Public Domain -sphinx>=1.6.2 httmock>=1.2.4 mock oslotest>=1.2.0 # Apache-2.0 @@ -12,4 +11,3 @@ testrepository>=0.0.18 testtools>=0.9.34 pep257>=0.5.0 PyMySQL>=0.6.2,!=0.6.4 -openstackdocstheme>=1.11.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index b0d9190c..4eefeb26 100644 --- a/tox.ini +++ b/tox.ini @@ -64,7 +64,8 @@ commands = python setup.py testr --coverage \ commands = {toxinidir}/tools/cover.sh {posargs} [testenv:docs] -commands = python setup.py build_sphinx {posargs} +deps = -r{toxinidir}/doc/requirements.txt +commands = sphinx-build -b html doc/source doc/build/html [flake8] # E125 continuation line does not distinguish itself from next logical line