@@ -235,42 +235,46 @@ rubocop:
235
235
- if : ' $PIPELINE_TYPE =~ /_MR_PIPELINE$/'
236
236
needs : []
237
237
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
241
241
stage : check
242
242
cache : {}
243
243
needs : []
244
244
before_script : []
245
245
script :
246
246
# Lint prose
247
247
- 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 :
248
261
# Lint Markdown
249
262
- markdownlint-cli2 'doc/**/*.md'
250
263
rules :
251
264
- if : ' $PIPELINE_TYPE =~ /_TEST_PIPELINE$/'
252
265
- if : ' $PIPELINE_TYPE =~ /_MR_PIPELINE$/'
253
266
- if : ' $PIPELINE_TYPE == "DOCS_PIPELINE"'
254
267
255
- # Perform link checks on published HTML files
268
+ # Perform link checking on documentation Markdown files
256
269
docs-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
258
271
stage : check
259
272
cache : {}
260
273
needs : []
261
274
before_script : []
262
275
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
274
278
rules :
275
279
- if : ' $PIPELINE_TYPE =~ /_TEST_PIPELINE$/'
276
280
- if : ' $PIPELINE_TYPE =~ /_MR_PIPELINE$/'
0 commit comments