diff --git a/doc.zih.tu-dresden.de/util/check-every-page-not-included-more-than-once.sh b/doc.zih.tu-dresden.de/util/check-every-page-not-included-more-than-once.sh index a07bca070f08939973634afcfba8973fe4f0e1b3..b3539b0b08bca089f0f4daf3f901180668d952ec 100755 --- a/doc.zih.tu-dresden.de/util/check-every-page-not-included-more-than-once.sh +++ b/doc.zih.tu-dresden.de/util/check-every-page-not-included-more-than-once.sh @@ -9,7 +9,8 @@ MSG=$(find ${DOCUMENT_ROOT} -name "*.md" | while IFS=' ' read string md=${string#${DOCUMENT_ROOT}/} # count occurences of md in nav - numberOfReferences=$(sed -n '/nav:/,/^$/p' ${basedir}/mkdocs.yml | grep -c ${md}) + numberOfReferences=$(sed -n '/nav:/,/^$/p' ${basedir}/mkdocs.yml \ + | grep -c ${md}) if [[ ${numberOfReferences} -gt 1 ]]; then echo "${md} is included ${numberOfReferences} times in nav" fi diff --git a/doc.zih.tu-dresden.de/util/check-footer.sh b/doc.zih.tu-dresden.de/util/check-footer.sh index 7a54a62897086b10c4a728b2f0d81e3cde51bf24..c658340de09c6f537cd6aeea13ef0cea1377ad14 100755 --- a/doc.zih.tu-dresden.de/util/check-footer.sh +++ b/doc.zih.tu-dresden.de/util/check-footer.sh @@ -3,12 +3,16 @@ scriptpath=${BASH_SOURCE[0]} basedir=$(dirname "${scriptpath}") basedir=$(dirname "${basedir}") DOCUMENT_ROOT=${basedir}/docs -expectedFooter="legal_notice.md accessibility.md data_protection_declaration.md" +expectedFooter="\ +legal_notice.md \ +accessibility.md \ +data_protection_declaration.md" MSG=$(for md in ${expectedFooter} do # md included in footer - numberOfReferencesInFooter=$(sed -n '/footer:/,/^$/p' ${basedir}/mkdocs.yml | grep -c /${md%.md}) + numberOfReferencesInFooter=$(sed -n '/footer:/,/^$/p' \ + ${basedir}/mkdocs.yml | grep -c /${md%.md}) if [[ ${numberOfReferencesInFooter} -eq 0 ]]; then echo "${md} is not included in footer" elif [[ ${numberOfReferencesInFooter} -ne 1 ]]; then diff --git a/doc.zih.tu-dresden.de/util/check-max-depth.sh b/doc.zih.tu-dresden.de/util/check-max-depth.sh index 95fcdbb246e587dd41da86f08b6d55ef5cb14dc3..6a15da95b124d5c12c4c0ef0ead27e1cbb7ae315 100755 --- a/doc.zih.tu-dresden.de/util/check-max-depth.sh +++ b/doc.zih.tu-dresden.de/util/check-max-depth.sh @@ -7,7 +7,8 @@ DOCUMENT_ROOT=${basedir}/docs maxDepth=1 DOCUMENT_SLASH_COUNT=$(echo "${DOCUMENT_ROOT}/" | awk -F'/' '{print NF}') -MSG=$(find ${DOCUMENT_ROOT} -name "*.md" | awk -F'/' '{print $0,NF}' | while IFS=' ' read string slash_count +MSG=$(find ${DOCUMENT_ROOT} -name "*.md" | awk -F'/' '{print $0,NF}' \ + | while IFS=' ' read string slash_count do depth=$((slash_count - DOCUMENT_SLASH_COUNT)) if [[ "${depth}" -gt ${maxDepth} ]]; then diff --git a/doc.zih.tu-dresden.de/util/check-no-floating.sh b/doc.zih.tu-dresden.de/util/check-no-floating.sh index d8103b15c196451d3c8c774fa7a69a2429937aab..f07af8b903cb39e6c49b607155e8c5802e3077fb 100755 --- a/doc.zih.tu-dresden.de/util/check-no-floating.sh +++ b/doc.zih.tu-dresden.de/util/check-no-floating.sh @@ -3,7 +3,10 @@ scriptpath=${BASH_SOURCE[0]} basedir=$(dirname "${scriptpath}") basedir=$(dirname "${basedir}") DOCUMENT_ROOT=${basedir}/docs -expectedFooter="legal_notice.md accessibility.md data_protection_declaration.md" +expectedFooter="\ +legal_notice.md \ +accessibility.md \ +data_protection_declaration.md" MSG=$(find ${DOCUMENT_ROOT} -name "*.md" | while IFS=' ' read string do @@ -11,7 +14,8 @@ MSG=$(find ${DOCUMENT_ROOT} -name "*.md" | while IFS=' ' read string # md included in nav if [[ ! "${expectedFooter}" =~ ${md} ]]; then - numberOfReferences=$(sed -n '/nav:/,/^$/p' ${basedir}/mkdocs.yml | grep -c ${md}) + numberOfReferences=$(sed -n '/nav:/,/^$/p' ${basedir}/mkdocs.yml \ + | grep -c ${md}) if [[ ${numberOfReferences} -eq 0 ]]; then echo "${md} is not included in nav" fi