openstack-manuals/tools/build-install-guides-rst.sh
Doug Hellmann 987b7aaf5c publish from master to the working site
Publish changes to this repo directly from the master branch to the
working site. Do not move changes into a "draft" folder before
publishing.

"Docs like code"

Change-Id: Iac54bd70ec587ba27019f5377dcf99a3c9460dcb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-21 11:21:29 -04:00

35 lines
860 B
Bash
Executable File

#!/bin/bash -e
mkdir -p publish-docs
# Do not build debian debconf for now, there're no Ocata packages at all.
INDEX=doc/install-guide/source/index.rst
LINKCHECK=""
PDF_OPTION=""
while [[ $# > 0 ]] ; do
option="$1"
case $option in
--linkcheck)
LINKCHECK="--linkcheck"
;;
--pdf)
PDF_OPTION="--pdf"
;;
esac
shift
done
# Set this to a sensible value if not set by OpenStack CI.
if [ -z "$ZUUL_REFNAME" ] ; then
ZUUL_REFNAME="master"
fi
# 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"
# Build the guide
tools/build-rst.sh doc/install-guide \
--target "install-guide" $LINKCHECK $PDF_OPTION