Apply sphinx-lint to documentation

This commit is contained in:
Cédric Krier
2023-02-04 21:02:37 +01:00
parent 967a41f467
commit eeb0bc72d4
7 changed files with 14 additions and 8 deletions
+6
View File
@@ -53,9 +53,15 @@ documentation:
variables:
DOC_BASE_URL: ${CI_PROJECT_DIR}/docs
DOC_DIR: doc
cache:
paths:
- .cache/pip/http
before_script:
- pip install sphinx-lint
script:
- cd "${PACKAGE}"
- python -m sphinx -T -E -W -n -b html ${DOC_DIR} _build/html
- python -m sphinxlint ${DOC_DIR}
- |
if [ "${CHECK_LINK}" ]; then
python -m sphinx -T -E -W -n -b linkcheck ${DOC_DIR} _build;