openstack-manuals/tools/build-all-rst.sh
Andreas Jaeger 5ebe3dd514 Enhance root-marker
Add ZUUL_NEWREV to the AFS root-marker file that is used for publishing
content to the new AFS based docs site.

Change-Id: I310b6e2aca3b5d8858fa16d07fc4f9d292b52a35
2016-10-31 20:54:04 +01:00

32 lines
949 B
Bash
Executable File

#!/bin/bash -e
mkdir -p publish-docs
LINKCHECK=""
if [[ $# > 0 ]] ; then
if [ "$1" = "--linkcheck" ] ; then
LINKCHECK="$1"
fi
fi
for guide in admin-guide arch-design cli-reference contributor-guide \
ha-guide image-guide ops-guide user-guide; do
tools/build-rst.sh doc/$guide --build build \
--target $guide $LINKCHECK
done
# Draft guides
# This includes guides that we publish from stable branches
# as versioned like the networking-guide.
for guide in networking-guide arch-design-draft config-reference; do
tools/build-rst.sh doc/$guide --build build \
--target "draft/$guide" $LINKCHECK
done
tools/build-install-guides-rst.sh $LINKCHECK
# This marker is needed for infra publishing.
# Note for stable branches, this needs to be the top of each manual.
MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV"
echo $MARKER_TEXT > publish-docs/.root-marker