mirror of
https://git.FreeBSD.org/doc.git
synced 2026-06-02 19:35:07 +00:00
b8fe24d226
In some older documents there are code snippets with the following tags which are non standard for asciidoc: [.programlisting] .... CODE .... As this is non-standard vale does not escape this and finds spelling error but these blocks should be ignored by vale. This patch adds relevant directives to ignore the blocks. Approved by: carlavilla (mentor) Differential Revision: https://reviews.freebsd.org/D39702
44 lines
1.0 KiB
INI
44 lines
1.0 KiB
INI
StylesPath = .vale/styles
|
|
MinAlertLevel = suggestion
|
|
|
|
[asciidoctor]
|
|
# enable
|
|
experimental = YES
|
|
|
|
# assign a specific value
|
|
attribute-missing = drop
|
|
|
|
[*.adoc]
|
|
BasedOnStyles = FreeBSD, Vale
|
|
BlockIgnores = (?s) *(\[\.programlisting\]\n\.{4}.*?\.{4})
|
|
|
|
[website/content/{bn-bd,da,de,el,es,fr,hu,id,it,ja,ko,mn,nl,pl,pt-br,ru,tr,zh-cn,zh-tw}/**/*.adoc]
|
|
BasedOnStyles = FreeBSD, Vale
|
|
FreeBSD.BrandTerms = NO
|
|
FreeBSD.ConsciousLanguage = NO
|
|
FreeBSD.Contractions = NO
|
|
FreeBSD.Hang = NO
|
|
FreeBSD.Hyphens = NO
|
|
FreeBSD.Repitition = NO
|
|
FreeBSD.SemanticLineBreak = NO
|
|
FreeBSD.Spacing = NO
|
|
FreeBSD.Weasel = NO
|
|
Vale.Avoid= NO
|
|
Vale.Spelling = NO
|
|
Vale.Terms= NO
|
|
|
|
[documentation/content/{bn-bd,da,de,el,es,fr,hu,id,it,ja,ko,mn,nl,pl,pt-br,ru,tr,zh-cn,zh-tw}/**/*.adoc]
|
|
BasedOnStyles = FreeBSD, Vale
|
|
FreeBSD.BrandTerms = NO
|
|
FreeBSD.ConsciousLanguage = NO
|
|
FreeBSD.Contractions = NO
|
|
FreeBSD.Hang = NO
|
|
FreeBSD.Hyphens = NO
|
|
FreeBSD.Repitition = NO
|
|
FreeBSD.SemanticLineBreak = NO
|
|
FreeBSD.Spacing = NO
|
|
FreeBSD.Weasel = NO
|
|
Vale.Avoid= NO
|
|
Vale.Spelling = NO
|
|
Vale.Terms= NO
|