api-site/tox.ini
Andreas Jaeger 314f7cca7a Set up for publishing via openstack-doc-tools
tox -e publishdocs will be called by the post jenkins jobs to prepare
everything for publishing on docs.openstack.org - and then the content
of publish-docs gets copied.

tox -e publishdocs-api is the job for api.openstack.org.

Additionally, remove parameter --api-docs from
openstack-doc-tools invocation, it is set in doc-test.conf now.

Change-Id: I84986e1572d128b85ad43863217e4d6c0b22f41f
2014-02-14 16:47:00 +01:00

35 lines
1021 B
INI

[tox]
minversion = 1.6
envlist = checkniceness,checksyntax,checkdeletions,checkbuild
skipsdist = True
[testenv]
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:checkniceness]
commands = openstack-doc-test --check-niceness {posargs}
[testenv:checksyntax]
commands = openstack-doc-test --check-syntax {posargs}
[testenv:checkdeletions]
commands = openstack-doc-test --check-deletions {posargs}
[testenv:checkbuild]
commands = openstack-doc-test --check-build {posargs}
[testenv:publishdocs]
# Prepare documents (without www) so that they can get published on
# docs.openstack.org with just copying publish-docs/* over.
commands = openstack-doc-test --check-build --nocreate-index --only-book api-quick-start
[testenv:publishdocs-api]
# Prepare documents (without www) so that they can get published on
# api.openstack.org with just copying publish-docs/* over.
commands = openstack-doc-test --check-build --nocreate-index --only-book api-ref