Merge "Handle SPECIAL_BOOKs in doc-tools-check-languages"
This commit is contained in:
commit
dbecf8307f
@ -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
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user