summaryrefslogtreecommitdiff
path: root/doc/.vale/gitlab/InternalLinkFormat.yml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/.vale/gitlab/InternalLinkFormat.yml')
-rw-r--r--doc/.vale/gitlab/InternalLinkFormat.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/.vale/gitlab/InternalLinkFormat.yml b/doc/.vale/gitlab/InternalLinkFormat.yml
new file mode 100644
index 00000000000..9a72778140e
--- /dev/null
+++ b/doc/.vale/gitlab/InternalLinkFormat.yml
@@ -0,0 +1,13 @@
+---
+# Error: gitlab.InternalLinkFormat
+#
+# Checks that internal link paths don't start with "./", which is not needed.
+#
+# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
+extends: existence
+message: 'Link "%s" must not start with "./".'
+link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#links-to-internal-documentation
+level: error
+scope: raw
+raw:
+ - '\[.+\]\(\.\/.+?\)'