parent
5743a0f582
commit
dc4b13c604
9
.github/workflows/docs.yml
vendored
9
.github/workflows/docs.yml
vendored
@ -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
|
||||
|
||||
@ -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 = {/*, */}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user