Add navigation check for entries with absolute paths
What does this MR do and why?
Add a test for attempts to add global navigations links with absolutely paths (begin with /
) which do not work.
Closes #1640 (closed).
How to set up and validate locally
-
Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md. -
Check out this branch. -
Run scripts/check-navigation.sh
. There should be no errors. -
Add /
to the start of any and multiple global navigation entries incontent/_data/navigation.yaml
. Runscripts/check-navigation.sh
and there should be one error for every modified entry. -
Undo changes to content/_data/navigation.yaml
. -
Run scripts/check-navigation.sh
. There should be no errors.
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.