ci(doc): Allow linkcheck to fail

Changed the linkcheck job to interpret warnings as errors so that we see
when links break. The job then doesn't fail and the pipeline continues,
but it issues a warning in GitLab and makes the warning transparent.

Bug #57056
This commit is contained in:
Nico Gulden 2024-02-13 17:32:57 +01:00
parent 9e0f1f1391
commit ae4a33c819

View File

@ -47,7 +47,8 @@ stages:
- .sphinx-doc
- .sphinx-linkcheck-template
script:
- make -C "$DOCS_DIR" -e FORCE_COLOR="TRUE" -e SPHINXOPTS="-v -D language='$language'" -e BUILDDIR="_build/$language" linkcheck
- make -C "$DOCS_DIR" -e FORCE_COLOR="TRUE" -e SPHINXOPTS="-v -W --keep-going -D language='$language'" -e BUILDDIR="_build/$language" linkcheck
allow_failure: true
artifacts:
paths:
- $CI_PROJECT_DIR/$DOCS_DIR/_build/$language/linkcheck