@@ -235,42 +235,46 @@ rubocop:
235235 - if : ' $PIPELINE_TYPE =~ /_MR_PIPELINE$/'
236236 needs : []
237237
238- # Perform documentation linting on Markdown files
239- docs-lint markdown :
240- image : registry.gitlab.com/gitlab-org/gitlab-docs/lint-markdown:alpine-3.19-vale-3.0.7-markdownlint -0.39 .0-markdownlint2 -0.12.1
238+ # Perform content linting on documentation Markdown files
239+ docs-lint content :
240+ image : registry.gitlab.com/gitlab-org/gitlab-docs/lint-markdown:alpine-3.19-vale-3.4.1-markdownlint2 -0.13 .0-lychee -0.14.3
241241 stage : check
242242 cache : {}
243243 needs : []
244244 before_script : []
245245 script :
246246 # Lint prose
247247 - vale --minAlertLevel error doc
248+ rules :
249+ - if : ' $PIPELINE_TYPE =~ /_TEST_PIPELINE$/'
250+ - if : ' $PIPELINE_TYPE =~ /_MR_PIPELINE$/'
251+ - if : ' $PIPELINE_TYPE == "DOCS_PIPELINE"'
252+
253+ # Perform linting on documentation Markdown files
254+ docs-lint markdown :
255+ image : registry.gitlab.com/gitlab-org/gitlab-docs/lint-markdown:alpine-3.19-vale-3.4.1-markdownlint2-0.13.0-lychee-0.14.3
256+ stage : check
257+ cache : {}
258+ needs : []
259+ before_script : []
260+ script :
248261 # Lint Markdown
249262 - markdownlint-cli2 'doc/**/*.md'
250263 rules :
251264 - if : ' $PIPELINE_TYPE =~ /_TEST_PIPELINE$/'
252265 - if : ' $PIPELINE_TYPE =~ /_MR_PIPELINE$/'
253266 - if : ' $PIPELINE_TYPE == "DOCS_PIPELINE"'
254267
255- # Perform link checks on published HTML files
268+ # Perform link checking on documentation Markdown files
256269docs-lint links :
257- image : registry.gitlab.com/gitlab-org/gitlab-docs/lint-html :alpine-3.19-ruby -3.2.3-a5032206
270+ image : registry.gitlab.com/gitlab-org/gitlab-docs/lint-markdown :alpine-3.19-vale -3.4.1-markdownlint2-0.13.0-lychee-0.14.3
258271 stage : check
259272 cache : {}
260273 needs : []
261274 before_script : []
262275 script :
263- # Put documentation in location expected by nanoc and configured in nanoc.yaml. For more information, see:
264- # https://gitlab.com/gitlab-org/gitlab-docs/-/blob/eee6c4c03621ff13743828ad74a8f0e8b96dfe7c/nanoc.yaml#L43
265- - mkdir /tmp/omnibus-gitlab
266- - mv doc/ /tmp/omnibus-gitlab
267- - cd /tmp/gitlab-docs
268- # Build HTML from Markdown
269- - make compile
270- # Check the internal links and anchors (in parallel)
271- # Links from the home page aren't checked because they aren't rendered here. For information, see:
272- # https://gitlab.com/gitlab-org/gitlab-docs/-/blob/eee6c4c03621ff13743828ad74a8f0e8b96dfe7c/content/index.erb#L6
273- - " parallel time bundle exec nanoc check ::: internal_links internal_anchors"
276+ # Check Markdown links
277+ - lychee --offline --include-fragments doc/**/*.md
274278 rules :
275279 - if : ' $PIPELINE_TYPE =~ /_TEST_PIPELINE$/'
276280 - if : ' $PIPELINE_TYPE =~ /_MR_PIPELINE$/'
0 commit comments