diff --git a/.vale.ini b/.vale.ini index f88084e158..c8101f4fb2 100644 --- a/.vale.ini +++ b/.vale.ini @@ -1,4 +1,4 @@ -StylesPath = .github/vale +StylesPath = _vale MinAlertLevel = suggestion Vocab = Docker diff --git a/.github/vale/.vale-config/0-Hugo.ini b/_vale/.vale-config/0-Hugo.ini similarity index 60% rename from .github/vale/.vale-config/0-Hugo.ini rename to _vale/.vale-config/0-Hugo.ini index 3b014081df..4347ca9e90 100644 --- a/.github/vale/.vale-config/0-Hugo.ini +++ b/_vale/.vale-config/0-Hugo.ini @@ -1,8 +1,10 @@ [*.md] # Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}}) TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \ -(\[.+\]\({{< .+ >}}\)) +(\[.+\]\({{< .+ >}}\)), \ +[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \ +[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s # Exclude `{{< myshortcode `This is some HTML, ... >}}` -BlockIgnores = (?sm)^({{[%<] [^{]*? [%>]}})\n$, \ +BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \ (?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}}) diff --git a/.github/vale/Docker/Acronyms.yml b/_vale/Docker/Acronyms.yml similarity index 95% rename from .github/vale/Docker/Acronyms.yml rename to _vale/Docker/Acronyms.yml index ce19d88246..337fe998a1 100644 --- a/.github/vale/Docker/Acronyms.yml +++ b/_vale/Docker/Acronyms.yml @@ -4,16 +4,15 @@ link: https://docs.docker.com/contribute/style/grammar/#acronyms-and-initialisms level: warning ignorecase: false # Ensures that the existence of 'first' implies the existence of 'second'. -first: '\b([A-Z]{3,5})\b' +first: '\b[^!]([A-Z]{3,5})\b' second: '(?:\b[A-Za-z]+(?: |\n))+\(([A-Z]{3,5})\)' # ... with the exception of these: exceptions: - API - - BIOS - - FUSE - ARM - ASP - AWS + - BIOS - CLI - CPU - CSS @@ -27,6 +26,7 @@ exceptions: - DVP - ELK - FAQ + - FUSE - GCC - GDB - GET @@ -55,6 +55,7 @@ exceptions: - POST - RAM - REPL + - REST - RSA - SBOM - SCM diff --git a/.github/vale/Docker/Avoid.yml b/_vale/Docker/Avoid.yml similarity index 100% rename from .github/vale/Docker/Avoid.yml rename to _vale/Docker/Avoid.yml diff --git a/.github/vale/Docker/Capitalization.yml b/_vale/Docker/Capitalization.yml similarity index 85% rename from .github/vale/Docker/Capitalization.yml rename to _vale/Docker/Capitalization.yml index 2646d9c808..0b6ed0bb56 100644 --- a/.github/vale/Docker/Capitalization.yml +++ b/_vale/Docker/Capitalization.yml @@ -7,4 +7,4 @@ action: params: - Docker tokens: - - 'docker(?!/[a-z-]+)' + - '[^\[/]docker[^/]' diff --git a/.github/vale/Docker/Exclamation.yml b/_vale/Docker/Exclamation.yml similarity index 100% rename from .github/vale/Docker/Exclamation.yml rename to _vale/Docker/Exclamation.yml diff --git a/.github/vale/Docker/GenericCTA.yml b/_vale/Docker/GenericCTA.yml similarity index 100% rename from .github/vale/Docker/GenericCTA.yml rename to _vale/Docker/GenericCTA.yml diff --git a/.github/vale/Docker/HeadingLength.yml b/_vale/Docker/HeadingLength.yml similarity index 100% rename from .github/vale/Docker/HeadingLength.yml rename to _vale/Docker/HeadingLength.yml diff --git a/.github/vale/Docker/HeadingPunctuation.yml b/_vale/Docker/HeadingPunctuation.yml similarity index 100% rename from .github/vale/Docker/HeadingPunctuation.yml rename to _vale/Docker/HeadingPunctuation.yml diff --git a/.github/vale/Docker/HeadingSentenceCase.yml b/_vale/Docker/HeadingSentenceCase.yml similarity index 100% rename from .github/vale/Docker/HeadingSentenceCase.yml rename to _vale/Docker/HeadingSentenceCase.yml diff --git a/.github/vale/Docker/ListComma.yml b/_vale/Docker/ListComma.yml similarity index 100% rename from .github/vale/Docker/ListComma.yml rename to _vale/Docker/ListComma.yml diff --git a/.github/vale/Docker/OxfordComma.yml b/_vale/Docker/OxfordComma.yml similarity index 100% rename from .github/vale/Docker/OxfordComma.yml rename to _vale/Docker/OxfordComma.yml diff --git a/.github/vale/Docker/RecommendedWords.yml b/_vale/Docker/RecommendedWords.yml similarity index 100% rename from .github/vale/Docker/RecommendedWords.yml rename to _vale/Docker/RecommendedWords.yml diff --git a/.github/vale/Docker/SentenceLength.yml b/_vale/Docker/SentenceLength.yml similarity index 100% rename from .github/vale/Docker/SentenceLength.yml rename to _vale/Docker/SentenceLength.yml diff --git a/.github/vale/Docker/Spacing.yml b/_vale/Docker/Spacing.yml similarity index 100% rename from .github/vale/Docker/Spacing.yml rename to _vale/Docker/Spacing.yml diff --git a/.github/vale/Docker/URLFormat.yml b/_vale/Docker/URLFormat.yml similarity index 100% rename from .github/vale/Docker/URLFormat.yml rename to _vale/Docker/URLFormat.yml diff --git a/.github/vale/Docker/Units.yml b/_vale/Docker/Units.yml similarity index 100% rename from .github/vale/Docker/Units.yml rename to _vale/Docker/Units.yml diff --git a/.github/vale/Docker/VersionText.yml b/_vale/Docker/VersionText.yml similarity index 100% rename from .github/vale/Docker/VersionText.yml rename to _vale/Docker/VersionText.yml diff --git a/.github/vale/Docker/We.yml b/_vale/Docker/We.yml similarity index 100% rename from .github/vale/Docker/We.yml rename to _vale/Docker/We.yml diff --git a/.github/vale/config/vocabularies/Docker/accept.txt b/_vale/config/vocabularies/Docker/accept.txt similarity index 99% rename from .github/vale/config/vocabularies/Docker/accept.txt rename to _vale/config/vocabularies/Docker/accept.txt index c461e2f7bf..f70d624a0b 100644 --- a/.github/vale/config/vocabularies/Docker/accept.txt +++ b/_vale/config/vocabularies/Docker/accept.txt @@ -35,6 +35,7 @@ Ddosify Debootstrap Dev Environments? Django +Docker's Docker Build Cloud Docker Business Docker Dasboard