Check documentation links only when CHECK_LINK is set

(grafted from 8a7031c7e3f8d0117d2f57fbf43b0da5c231c738)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2023-01-11 13:44:38 +01:00
parent ec50a18240
commit ab1f8fbe9d
+4 -1
View File
@@ -56,7 +56,10 @@ documentation:
script:
- cd "${PACKAGE}"
- python -m sphinx -T -E -W -n -b html ${DOC_DIR} _build/html
- python -m sphinx -T -E -W -n -b linkcheck ${DOC_DIR} _build
- |
if [ "${CHECK_LINK}" ]; then
python -m sphinx -T -E -W -n -b linkcheck ${DOC_DIR} _build;
fi
rules:
- changes:
- ${PACKAGE}/${DOC_DIR}/**/*