Merge "Add environments to build install guides individually"
This commit is contained in:
commit
74288ea2b0
@ -2,6 +2,8 @@
|
||||
|
||||
mkdir -p publish-docs
|
||||
|
||||
TAGS=${1:-obs rdo ubuntu debian}
|
||||
|
||||
LINKCHECK=""
|
||||
if [[ $# > 0 ]] ; then
|
||||
if [ "$1" = "--linkcheck" ] ; then
|
||||
@ -15,7 +17,7 @@ title_org=$(grep "title::" doc/install-guide/source/index.rst | \
|
||||
trap "sed -i -e \"s/\.\. title::.*/.. title:: ${title_org}/\" \
|
||||
doc/install-guide/source/index.rst" EXIT
|
||||
|
||||
for tag in obs rdo ubuntu debian; do
|
||||
for tag in $TAGS; do
|
||||
GLOSSARY=""
|
||||
if [[ ! -e doc/common-rst/glossary.rst ]] ; then
|
||||
GLOSSARY="--glossary"
|
||||
@ -28,8 +30,10 @@ for tag in obs rdo ubuntu debian; do
|
||||
tools/build-rst.sh doc/install-guide \
|
||||
$GLOSSARY --tag ${tag} --target "draft/install-guide-${tag}" \
|
||||
$LINKCHECK
|
||||
done
|
||||
|
||||
# Debian uses index-debian, rename it.
|
||||
mv publish-docs/draft/install-guide-debian/index-debian.html \
|
||||
publish-docs/draft/install-guide-debian/index.html
|
||||
# Debian uses index-debian, rename it.
|
||||
if [[ "$tag" == "debian" ]]; then
|
||||
mv publish-docs/draft/install-guide-debian/index-debian.html \
|
||||
publish-docs/draft/install-guide-debian/index.html
|
||||
fi
|
||||
done
|
||||
|
16
tox.ini
16
tox.ini
@ -52,6 +52,22 @@ commands =
|
||||
commands =
|
||||
{toxinidir}/tools/build-install-guides-rst.sh
|
||||
|
||||
[testenv:install-guide-debian]
|
||||
commands =
|
||||
{toxinidir}/tools/build-install-guides-rst.sh debian
|
||||
|
||||
[testenv:install-guide-obs]
|
||||
commands =
|
||||
{toxinidir}/tools/build-install-guides-rst.sh obs
|
||||
|
||||
[testenv:install-guide-rdo]
|
||||
commands =
|
||||
{toxinidir}/tools/build-install-guides-rst.sh rdo
|
||||
|
||||
[testenv:install-guide-ubuntu]
|
||||
commands =
|
||||
{toxinidir}/tools/build-install-guides-rst.sh ubuntu
|
||||
|
||||
[testenv:publishdocs]
|
||||
# Prepare all documents (except www subdir) so that they can get
|
||||
# published on docs.openstack.org with just copying publish-docs/*
|
||||
|
Loading…
Reference in New Issue
Block a user