openstack-manuals/tools/build-all-rst.sh
KATO Tomoyuki ff3d5b4ec1 [cli-ref] Set up initial RST structure
Change-Id: I1a047bc65b380b067b18a0439e37330409cc7d94
Implements: blueprint cli-ref-rst
2016-01-08 22:28:31 +09:00

31 lines
776 B
Bash
Executable File

#!/bin/bash -e
mkdir -p publish-docs
GLOSSARY="--glossary"
LINKCHECK=""
if [[ $# > 0 ]] ; then
if [ "$1" = "--linkcheck" ] ; then
LINKCHECK="$1"
fi
fi
for guide in user-guide user-guide-admin admin-guide-cloud \
contributor-guide image-guide arch-design; do
tools/build-rst.sh doc/$guide $GLOSSARY --build build \
--target $guide $LINKCHECK
# Build it only the first time
GLOSSARY=""
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 cli-ref-rst; do
tools/build-rst.sh doc/$guide --build build \
--target "draft/$guide" $LINKCHECK
done
tools/build-install-guides-rst.sh $LINKCHECK