mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
Edit Vale config to be more lenient with generated content. Number of errors: - Before: 5473 - After: 2690
35 lines
927 B
INI
35 lines
927 B
INI
StylesPath = _vale
|
|
MinAlertLevel = suggestion
|
|
IgnoredScopes = text.frontmatter, code, tt, b, strong, i
|
|
Vocab = Docker
|
|
|
|
# Disable rules for genered content
|
|
[content/reference/**/**.md]
|
|
Vale.Spelling = NO
|
|
Vale.Terms = NO
|
|
Docker.Capitalization = NO
|
|
|
|
[content/manuals/*/release-notes/*.md]
|
|
Vale.Spelling = NO
|
|
Vale.Terms = NO
|
|
Docker.Capitalization = NO
|
|
|
|
[content/contribute/*.md]
|
|
Vale.Spelling = NO
|
|
Vale.Terms = NO
|
|
Docker.Capitalization = NO
|
|
Docker.Exclamation = NO
|
|
|
|
[*.md]
|
|
BasedOnStyles = Vale, Docker
|
|
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
|
|
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
|
|
(\[.+\]\({{< .+ >}}\)), \
|
|
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
|
|
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s, \
|
|
(?sm)({{[%<] .*?\s[%>]}})
|
|
|
|
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
|
|
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
|
|
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
|