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}/**/*