Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/.vale/gitlab/HeadingDepth.yml')
-rw-r--r--doc/.vale/gitlab/HeadingDepth.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/.vale/gitlab/HeadingDepth.yml b/doc/.vale/gitlab/HeadingDepth.yml
new file mode 100644
index 00000000000..466ab317226
--- /dev/null
+++ b/doc/.vale/gitlab/HeadingDepth.yml
@@ -0,0 +1,13 @@
+---
+# Warning: gitlab.HeadingDepth
+#
+# Checks that there are no headings greater than 3 levels
+#
+# For a list of all options, see https://vale.sh/docs/topics/styles/
+extends: existence
+message: 'The subheading "%s" is nested too deeply. Headings deeper than H5 suggest the section or page should be refactored.'
+link: https://docs.gitlab.com/ee/development/documentation/styleguide/index.html#headings-in-markdown
+level: warning
+scope: raw
+raw:
+ - '(?<=\n)#{5,}\s.*'