Publish only for trunk

Publish documents only for trunk.

This patch needs to go in before we branch for stable. Once branched,
the stable/icehouse branch should be changed again to get a
publishdocs section that only contains the following line for publishdocs:
openstack-doc-test --check-build --publish --only-book install-guide --only-book config-reference

Change-Id: Ibb2f7ef3917801f158896308f1d5b5ba350acf5c
This commit is contained in:
Andreas Jaeger 2014-05-04 02:03:43 +02:00
parent 78c3142d8a
commit 3422e45c68

10
tox.ini
View File

@ -37,16 +37,12 @@ commands = openstack-doc-test --check-build {posargs}
# published on docs.openstack.org with just copying publish-docs/*
# over.
commands =
## Commands for master:
openstack-doc-test --check-build --publish --force
# Publish install-guide and config-reference to /icehouse
# TODO(jaegerandi): Remove these lines before we branch off an
# icehouse branch.
cp -a publish-docs/trunk publish-docs/icehouse
# Replace links to /trunk with links to /icehouse/
# This needs bash so that tox does not interpret the *
bash -c "sed -i -e 's|/trunk/|/icehouse/|g' publish-docs/icehouse/*/atom.xml publish-docs/icehouse/*/*/*/atom.xml publish-docs/icehouse/*/*.html publish-docs/icehouse/*/*/*/*/*.html publish-docs/icehouse/*/*/*/*.html publish-docs/icehouse/*/*/*.html publish-docs/icehouse/*/*.html"
# Now publish www as well, we cannot do this from openstack-doc-test
bash -c "cp -a www/* publish-docs/"
## Commands for stable/icehouse only:
# openstack-doc-test --check-build --publish --only-book install-guide --only-book config-reference
[testenv:buildlang-install]
# Run as "tox -e buildlang-install -- $LANG"