ci: update vale to support MDX (#3148)

Closes: #3147
This commit is contained in:
Kyle Robbertze 2025-03-21 10:54:35 +00:00 committed by GitHub
parent 5743a0f582
commit dc4b13c604
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -34,6 +34,13 @@ jobs:
restore-keys: |
${{ runner.os }}-docs-lint-tools
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install -g mdx2vast
- name: Install Vale
run: |
python -m venv venv && source venv/bin/activate
@ -43,7 +50,7 @@ jobs:
errata-ai/vale \
vale_{version}_Linux_64-bit.tar.gz --extract vale \
/usr/local/bin/vale \
--version v3.9.6 \
--version v3.10.0 \
--version-file '{destination}.version'
- name: Add annotations matchers

View File

@ -10,10 +10,6 @@ Vocab = Docs
IgnoredScopes = code, tt, img, url, a
SkippedScopes = script, style, pre, figure, code
[formats]
# This is a workaround until https://github.com/errata-ai/vale/issues/841 is fixed
mdx = md
[*.{md,mdx}]
BasedOnStyles = Vale, Microsoft, LibreTime
@ -26,6 +22,3 @@ TokenIgnores = (<\/?[A-Z].+>), (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\
Microsoft.GeneralURL = False
Microsoft.RangeFormat = False
Vale.Spelling = False
[*.mdx]
CommentDelimiters = {/*, */}