From ab1f8fbe9da60536dc9a5a83ace2ea678330bfbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 11 Jan 2023 13:44:38 +0100 Subject: [PATCH] Check documentation links only when CHECK_LINK is set (grafted from 8a7031c7e3f8d0117d2f57fbf43b0da5c231c738) --HG-- branch : 6.0 --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 895c8a265d..ae368da41b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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}/**/*