diff options
Diffstat (limited to 'doc/.vale/gitlab/InternalLinkExtension.yml')
-rw-r--r-- | doc/.vale/gitlab/InternalLinkExtension.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/.vale/gitlab/InternalLinkExtension.yml b/doc/.vale/gitlab/InternalLinkExtension.yml new file mode 100644 index 00000000000..d07a2600798 --- /dev/null +++ b/doc/.vale/gitlab/InternalLinkExtension.yml @@ -0,0 +1,11 @@ +--- +# Checks that internal links have .md extenstion and not .html extension. +# +# For a list of all options, see https://errata-ai.github.io/vale/styles/ +extends: existence +message: Link %s must use the .md file extension. +link: https://docs.gitlab.com/ee/development/documentation/styleguide.html#links-to-internal-documentation +level: error +scope: raw +raw: + - '\[.+\]\((https?:){0}[\w\/\.-]+(\.html).*\)' |