
This patch set: (a) renamed the docs folder to doc (b) add in a basic tox.ini to generate the doc via ``tox -edocs`` (c) add in necessary /docs/requirements.txt dependencies Change-Id: Id45db34fdc8860047047a4e6069483dfb4a56d7f Signed-off-by: Tin Lam <tin@irrational.io>
24 lines
621 B
INI
24 lines
621 B
INI
[tox]
|
|
minversion = 2.3.1
|
|
skipsdist = True
|
|
envlist = docs
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PBR_VERSION
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -rf doc/build
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
whitelist_externals =
|
|
rm
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|