Update docs building

Switch from python setup.py to calling sphinx-build directly, add
a new doc requirements.txt file.

Change-Id: I199b8ceff5740c775804ff0db52704df8cbd7b86
This commit is contained in:
Andreas Jaeger 2020-01-19 16:55:02 +01:00
parent 84cf19496a
commit 1dde1e30e9
4 changed files with 5 additions and 8 deletions

1
doc/requirements.txt Normal file
View File

@ -0,0 +1 @@
zuul-sphinx>=0.2.0

View File

@ -13,9 +13,3 @@ classifier =
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
[build_sphinx]
all-files = 1
warning-is-error = 1
source-dir = doc/source
build-dir = doc/build

View File

@ -8,4 +8,3 @@ zuul
ansible>=2.7.0,<2.8
ansible-lint<4
bashate>=0.2
zuul-sphinx>=0.2.0

View File

@ -17,7 +17,10 @@ deps = bindep
commands = bindep test
[testenv:docs]
commands = python setup.py build_sphinx
deps =
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:linters]
whitelist_externals = bash