From 33e278602f577408545a8a59e044ec0acbd7ca6e Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 21 Jul 2017 07:25:19 +0200 Subject: [PATCH] Update RST building No need for build-install-guides-rst.sh, move to build-all-rst.sh. Simplify build-all-rst.sh since we now do not have versioned or draft docs anymore. Change-Id: I213eff811d83ddfb1da3bb15dd8c99adeec93eb9 --- tools/build-all-rst.sh | 22 +++----------------- tools/build-install-guides-rst.sh | 34 ------------------------------- tox.ini | 4 ---- 3 files changed, 3 insertions(+), 57 deletions(-) delete mode 100755 tools/build-install-guides-rst.sh diff --git a/tools/build-all-rst.sh b/tools/build-all-rst.sh index f4ce589ca4..39e8931789 100755 --- a/tools/build-all-rst.sh +++ b/tools/build-all-rst.sh @@ -29,11 +29,11 @@ done # PDF targets for Install guides are dealt in build-install-guides-rst.sh PDF_TARGETS=( 'arch-design'\ 'ha-guide' \ - 'image-guide') + 'image-guide' \ + 'install-guide') -# Note that these guides are only build for master branch for guide in arch-design contributor-guide \ - ha-guide image-guide; do + ha-guide ha-guide-draft image-guide install-guide; do if [[ ${PDF_TARGETS[*]} =~ $guide ]]; then tools/build-rst.sh doc/$guide --build build \ --target $guide $LINKCHECK $PDF_OPTION @@ -43,22 +43,6 @@ for guide in arch-design contributor-guide \ fi done -# Draft guides -# This includes guides that we publish from stable branches -# as versioned like the ha-guide -for guide in ha-guide-draft; do - TARGET="$guide" - if [[ ${PDF_TARGETS[*]} =~ $guide ]]; then - tools/build-rst.sh doc/$guide --build build \ - --target "$TARGET" $LINKCHECK $PDF_OPTION - else - tools/build-rst.sh doc/$guide --build build \ - --target "$TARGET" $LINKCHECK - fi -done - -tools/build-install-guides-rst.sh $LINKCHECK $PDF_OPTION - # For master, just mark the root if [ "$ZUUL_REFNAME" = "master" ] ; then echo $MARKER_TEXT > publish-docs/.root-marker diff --git a/tools/build-install-guides-rst.sh b/tools/build-install-guides-rst.sh deleted file mode 100755 index 14e8523507..0000000000 --- a/tools/build-install-guides-rst.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 diff --git a/tox.ini b/tox.ini index cdd60a81b7..62e63906b0 100644 --- a/tox.ini +++ b/tox.ini @@ -41,10 +41,6 @@ commands = commands = {toxinidir}/tools/build-all-rst.sh --pdf -[testenv:install-guides] -commands = - {toxinidir}/tools/build-install-guides-rst.sh {posargs} - [testenv:install-guide-debconf] commands = {toxinidir}/tools/build-install-guides-rst.sh debconf {posargs}