1dc7b965b4
We can publish the guide as is to the final location already. Once it is ready, we can then just update the index pages and add redirects from old location to new location. But there's no need IMHO to publish to drafts anymore. Change-Id: Iaf1a0d2609853d7d004037f78cd24819e41adcd7
27 lines
690 B
Bash
Executable File
27 lines
690 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
|