mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
020cd9dfea
* don't lint inside curly brackets * fix Vale errors * false erroring on the word `information`
38 lines
854 B
INI
38 lines
854 B
INI
# Vale configuration for Mintlify documentation
|
|
|
|
StylesPath = .vale/styles
|
|
MinAlertLevel = suggestion
|
|
IgnoredScopes = code, tt, img, url, a
|
|
SkippedScopes = script, style, pre, figure, code
|
|
|
|
Packages = Google
|
|
Vocab = Mintlify
|
|
|
|
# This is required since Vale doesn't officially support MDX
|
|
[formats]
|
|
mdx = md
|
|
|
|
# MDX support
|
|
[*.mdx]
|
|
BasedOnStyles = Vale, Google
|
|
Vale.Terms = NO # Enforces really harsh capitalization rules, keep off
|
|
Vale.Avoid = NO # Too aggressive about common technical terms
|
|
|
|
# Token and block ignores for MDX-specific syntax
|
|
TokenIgnores = (?sm)((?:import|export) .+?$), \
|
|
(?<!`)(<\w+ ?.+ ?\/>)(?!`), \
|
|
(<[A-Z]\w+>.+?<\/[A-Z]\w+>), \
|
|
(<[^>]*>), \
|
|
\{[^}]*\}, \
|
|
(`[^`]*`), \
|
|
(```[\s\S]*?```)
|
|
|
|
BlockIgnores = (?sm)^(<\w+\n .*\s\/>)$, \
|
|
(?sm)^({.+.*})$, \
|
|
(?sm)^```[\s\S]*?```$
|
|
|
|
CommentDelimiters = {/*, */}
|
|
|
|
[changelog.mdx]
|
|
BasedOnStyles =
|