Update docs building

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

Change-Id: I199b8ceff5740c775804ff0db52704df8cbd7b86
changes/97/703297/1
Andreas Jaeger 3 years ago
parent 84cf19496a
commit 1dde1e30e9
  1. 1
      doc/requirements.txt
  2. 6
      setup.cfg
  3. 1
      test-requirements.txt
  4. 5
      tox.ini

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

@ -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

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

@ -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

Loading…
Cancel
Save