Add job to run rubocop docs link check in docs pipelines
What does this MR do and why?
We should run the new cop that checks docs link from ruby files in all docs-only pipelines: !165516 (merged)
If we change a filename or anchor in docs, the links from UI will break, so we need to run this check in docs pipelines too, similar to ui-docs-links lint
(https://gitlab.com/gitlab-org/gitlab/-/blob/12aa17f36517a26b278379d89098e5387f025767/.gitlab/ci/docs.gitlab-ci.yml#L98-106) which checks docs links from HAML files.
- Example recent docs pipeline with no rubocop check: https://gitlab.com/gitlab-org/gitlab/-/pipelines/1502181007
- Sample
rubocop-docs
from this MR: https://gitlab.com/gitlab-org/gitlab/-/jobs/8123771069
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.