diff --git a/bin/doc-tools-check-languages b/bin/doc-tools-check-languages index 85627d0c..05ed11aa 100755 --- a/bin/doc-tools-check-languages +++ b/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 diff --git a/bin/doc-tools-check-languages.conf b/bin/doc-tools-check-languages.conf index 1b91ac4e..374ae8eb 100644 --- a/bin/doc-tools-check-languages.conf +++ b/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" +)