Skip to content

Commit 31c099f

Browse files
RavlenSuzanne Selhorn
and
Suzanne Selhorn
committed
Merge branch 'docs-update-vale-tiers-badges' into 'master'
Adding tier badge rules See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7590 Merged-by: Marcel Amirault <[email protected]> Approved-by: Marcel Amirault <[email protected]> Reviewed-by: Marcel Amirault <[email protected]> Co-authored-by: Suzanne Selhorn <[email protected]>
2 parents 7b7b2e1 + cde5fb0 commit 31c099f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

doc/.vale/gitlab/Badges-Offerings.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Warning: gitlab.Badges-Offerings
2+
#
3+
# Tests the offering information in the tier badges that appear below topic titles.
4+
#
5+
# For a list of all options, see https://docs.gitlab.com/ee/development/documentation/styleguide/#available-product-tier-badges
6+
extends: existence
7+
message: "Offerings should be comma-separated, without `and`, and must be capitalized. Example: `GitLab.com, Self-managed, GitLab Dedicated`."
8+
link: https://docs.gitlab.com/ee/development/documentation/styleguide/#available-product-tier-badges
9+
level: error
10+
scope: raw
11+
raw:
12+
- (?<=\n\*\*Offering:\*\* )(Dedicated|[^\n]*(SaaS|self-managed|Self-Managed|GitLab dedicated|and|GitLab Dedicated,|, GitLab\.com|, Dedicated))

doc/.vale/gitlab/Badges-Tiers.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Warning: gitlab.Badges-Tiers
2+
#
3+
# Tests the tier information in the tier badges that appear below topic titles.
4+
#
5+
# For a list of all options, see https://docs.gitlab.com/ee/development/documentation/styleguide/#available-product-tier-badges
6+
extends: existence
7+
message: "Tiers should be capitalized, comma-separated, and ordered lowest to highest."
8+
link: https://docs.gitlab.com/ee/development/documentation/styleguide/#available-product-tier-badges
9+
level: error
10+
scope: raw
11+
raw:
12+
- (?<=\n\*\*Tier:\*\*)[^\n]*(free|premium|ultimate|, Free|Ultimate,)

0 commit comments

Comments
 (0)