Browse Source

Handle SPECIAL_BOOKs in doc-tools-check-languages

For now ignore RST books.

Change-Id: I5bf582ebc3bd4333e7bf6982d1c91da6eef8cf57
changes/46/163146/1
Andreas Jaeger 6 years ago
parent
commit
30452280a2
  1. 8
      bin/doc-tools-check-languages
  2. 8
      bin/doc-tools-check-languages.conf

8
bin/doc-tools-check-languages

@ -50,6 +50,11 @@ function test_language {
fi
args+=("--check-build" "-l $language")
for book in ${BOOKS["$language"]}; do
if [ ${SPECIAL_BOOKS[$book]+_} ] ; then
if [ ${SPECIAL_BOOKS[$book]} == "RST" ] ; then
continue
fi
fi
args+=("--only-book $book")
done
@ -75,7 +80,8 @@ function usage {
echo "LANG is a language code like 'fr' or 'ja'."
}
# Declare in case it's not in the file
declare -A SPECIAL_BOOKS
CONF_FILE=$1
shift

8
bin/doc-tools-check-languages.conf

@ -18,3 +18,11 @@ POM_FILE=doc/pom.xml
# Location of doc dir
DOC_DIR="doc/"
# Books with special handling
# Values need to match content in project-config/jenkins/scripts/common_translation_update.sh
declare -A SPECIAL_BOOKS
SPECIAL_BOOKS=(
["playground-user-guide"]="RST"
["networking-guide"]="skip"
)
Loading…
Cancel
Save