parent
5743a0f582
commit
dc4b13c604
9
.github/workflows/docs.yml
vendored
9
.github/workflows/docs.yml
vendored
@ -34,6 +34,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-docs-lint-tools
|
${{ 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
|
- name: Install Vale
|
||||||
run: |
|
run: |
|
||||||
python -m venv venv && source venv/bin/activate
|
python -m venv venv && source venv/bin/activate
|
||||||
@ -43,7 +50,7 @@ jobs:
|
|||||||
errata-ai/vale \
|
errata-ai/vale \
|
||||||
vale_{version}_Linux_64-bit.tar.gz --extract vale \
|
vale_{version}_Linux_64-bit.tar.gz --extract vale \
|
||||||
/usr/local/bin/vale \
|
/usr/local/bin/vale \
|
||||||
--version v3.9.6 \
|
--version v3.10.0 \
|
||||||
--version-file '{destination}.version'
|
--version-file '{destination}.version'
|
||||||
|
|
||||||
- name: Add annotations matchers
|
- name: Add annotations matchers
|
||||||
|
|||||||
@ -10,10 +10,6 @@ Vocab = Docs
|
|||||||
IgnoredScopes = code, tt, img, url, a
|
IgnoredScopes = code, tt, img, url, a
|
||||||
SkippedScopes = script, style, pre, figure, code
|
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}]
|
[*.{md,mdx}]
|
||||||
BasedOnStyles = Vale, Microsoft, LibreTime
|
BasedOnStyles = Vale, Microsoft, LibreTime
|
||||||
|
|
||||||
@ -26,6 +22,3 @@ TokenIgnores = (<\/?[A-Z].+>), (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\
|
|||||||
Microsoft.GeneralURL = False
|
Microsoft.GeneralURL = False
|
||||||
Microsoft.RangeFormat = False
|
Microsoft.RangeFormat = False
|
||||||
Vale.Spelling = False
|
Vale.Spelling = False
|
||||||
|
|
||||||
[*.mdx]
|
|
||||||
CommentDelimiters = {/*, */}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user