Do not publish www to wrong location

www pages are published via separate job and not via tox, remove
them from any publish-docs directory if they exist. publish-docs/www
would be the wrong location anyway.

Change-Id: I72de57df758fc04f8734d7f972d4185b2279dcb8
This commit is contained in:
Andreas Jaeger 2014-04-17 05:21:18 +02:00
parent a5457cc785
commit b4a01bdb0a

View File

@ -30,12 +30,17 @@ 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
commands =
openstack-doc-test --check-build --nocreate-index --only-book api-quick-start
# Remove www directory, it's published separately
rm -rf publish-docs/www
[testenv:publishdocs-api]
# Prepare documents (without www) so that they can get published on
# api.openstack.org with just copying publish-docs/* over.
# api.openstack.org with just copying publish-docs/api-ref over.
commands =
openstack-doc-test --check-build --nocreate-index --only-book api-ref --only-book api-ref-guides
# We need to move api-ref-guides to the proper place:
mv publish-docs/api-ref-guides publish-docs/api-ref/
# Remove www directory, it's published separately
rm -rf publish-docs/www