Update building for mitaka

Disable all non-translated and non-versioned guides for translation.
Only build backported guides (install-guide, config-reference,
networking-guide).
Do not publish web pages.
Update .gitreview for the branch.

Change-Id: I4e5834482be922da0c77a59d98cc66a107ae020a
This commit is contained in:
Andreas Jaeger 2016-05-04 19:23:18 +02:00
parent 87c5510a6e
commit 4b2106664b
6 changed files with 37 additions and 37 deletions

View File

@ -2,3 +2,4 @@
host=review.openstack.org
port=29418
project=openstack/openstack-manuals.git
defaultbranch=stable/mitaka

View File

@ -1,8 +1,8 @@
[DEFAULT]
repo_name = openstack-manuals
# Publish to /draft instead of /trunk
release_path = draft
# Publish to /mitaka instead of /draft
release_path = mitaka
url_exception = https://build.opensuse.org/package/show?package=python-pip&project=Cloud:OpenStack:Master
url_exception = https://packer.io

View File

@ -6,7 +6,7 @@ declare -A DIRECTORIES=(
declare -A BOOKS=(
["cs"]="install-guide"
["fr"]="install-guide"
["ja"]="image-guide user-guide install-guide networking-guide"
["ja"]="install-guide networking-guide"
["ko_KR"]="install-guide"
)
@ -31,12 +31,14 @@ DOC_DIR="doc/"
declare -A SPECIAL_BOOKS=(
# This needs special handling, handle it with the RST tools.
["common"]="RST"
["admin-guide"]="RST"
["arch-design"]="RST"
["image-guide"]="RST"
# Books published from mitaka branch
["install-guide"]="RST"
["networking-guide"]="RST"
["user-guide"]="RST"
# Books published from master or not translated
["admin-guide"]="skip"
["arch-design"]="skip"
["image-guide"]="skip"
["user-guide"]="skip"
# Do not translate
["cli-reference"]="skip"
["config-reference"]="skip"

View File

@ -9,19 +9,19 @@ if [[ $# > 0 ]] ; then
fi
fi
for guide in user-guide admin-guide \
contributor-guide image-guide arch-design cli-reference; do
tools/build-rst.sh doc/$guide --build build \
--target $guide $LINKCHECK
done
# Do not build from stable/mitaka
#for guide in user-guide admin-guide \
# contributor-guide image-guide arch-design cli-reference; 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 \
ops-guide; do
for guide in networking-guide config-reference ; do
tools/build-rst.sh doc/$guide --build build \
--target "draft/$guide" $LINKCHECK
--target "mitaka/$guide" $LINKCHECK
done
tools/build-install-guides-rst.sh $LINKCHECK

View File

@ -65,7 +65,7 @@ for tag in $TAGS; do
# Build the guide
tools/build-rst.sh doc/install-guide \
$GLOSSARY --tag ${tag} --target "draft/install-guide-${tag}" \
$GLOSSARY --tag ${tag} --target "mitaka/install-guide-${tag}" \
$LINKCHECK
# Restore the index file
@ -74,6 +74,6 @@ for tag in $TAGS; do
##
# Remove Debian specific content from other guides
if [[ "$tag" != "debian" ]]; then
rm -rf publish-docs/draft/install-guide-$tag/debconf
rm -rf publish-docs/mitaka/install-guide-$tag/debconf
fi
done

View File

@ -53,27 +53,24 @@ tools/build-all-rst.sh
# Build the www pages so that openstack-doc-test creates a link to
# www/www-index.html.
if [ "$PUBLISH" = "build" ] ; then
python tools/www-generator.py --source-directory www/ \
--output-directory publish-docs/www/
rsync -a www/static/ publish-docs/www/
# publish-docs/www-index.html is the trigger for openstack-indexpage
# to include the file.
mv publish-docs/www/www-index.html publish-docs/www-index.html
fi
if [ "$PUBLISH" = "publish" ] ; then
python tools/www-generator.py --source-directory www/ \
--output-directory publish-docs
rsync -a www/static/ publish-docs/
# Don't publish this file
rm publish-docs/www-index.html
fi
# Disabled for stable/mitaka:
#if [ "$PUBLISH" = "build" ] ; then
# python tools/www-generator.py --source-directory www/ \
# --output-directory publish-docs/www/
# rsync -a www/static/ publish-docs/www/
# # publish-docs/www-index.html is the trigger for openstack-indexpage
# # to include the file.
# mv publish-docs/www/www-index.html publish-docs/www-index.html
#fi
#if [ "$PUBLISH" = "publish" ] ; then
# python tools/www-generator.py --source-directory www/ \
# --output-directory publish-docs
# rsync -a www/static/ publish-docs/
# # Don't publish this file
# rm publish-docs/www-index.html
#fi
# We only publish changed manuals.
if [ "$PUBLISH" = "publish" ] ; then
# For publishing to both /draft and /BRANCH
copy_to_branch mitaka
else
if [ "$PUBLISH" = "build" ] ; then
# Create index page for viewing
openstack-indexpage publish-docs
fi