forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Automated docs spellcheck via GitHub Actions (dotnet#10774)
* github action * cSpell config * fixes: "prioritization", pre-release, up-vote
- Loading branch information
1 parent
f1bd01c
commit 5b5e7a6
Showing
5 changed files
with
94 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Documentation Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
# This ensures the check will only be run when something changes in the docs content | ||
- "docs/**/*" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "docs/**/*" | ||
jobs: | ||
spellcheck: | ||
name: "Docs: Spellcheck" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out the code | ||
- uses: actions/setup-node@v1 | ||
name: Setup node | ||
with: | ||
node-version: "16" | ||
- run: npm install -g cspell | ||
name: Install cSpell | ||
- run: cspell --config ./cSpell.json "docs/**/*.md" --no-progress | ||
name: Run cSpell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en", | ||
"words": [ | ||
"Blazor" | ||
], | ||
"ignoreWords": [], | ||
"patterns": [ | ||
{ | ||
"name": "Markdown links", | ||
"pattern": "\\((.*)\\)", | ||
"description": "" | ||
}, | ||
{ | ||
"name": "Markdown code blocks", | ||
"pattern": "/^(\\s*`{3,}).*[\\s\\S]*?^\\1/gmx", | ||
"description": "Taken from the cSpell example at https://cspell.org/configuration/patterns/#verbose-regular-expressions" | ||
}, | ||
{ | ||
"name": "Inline code blocks", | ||
"pattern": "\\`([^\\`\\r\\n]+?)\\`", | ||
"description": "https://stackoverflow.com/questions/41274241/how-to-capture-inline-markdown-code-but-not-a-markdown-code-fence-with-regex" | ||
}, | ||
{ | ||
"name": "Link contents", | ||
"pattern": "\\<a(.*)\\>", | ||
"description": "" | ||
}, | ||
{ | ||
"name": "Snippet references", | ||
"pattern": "-- snippet:(.*)", | ||
"description": "" | ||
}, | ||
{ | ||
"name": "Snippet references 2", | ||
"pattern": "\\<\\[sample:(.*)", | ||
"description": "another kind of snippet reference" | ||
}, | ||
{ | ||
"name": "Multi-line code blocks", | ||
"pattern": "/^\\s*```[\\s\\S]*?^\\s*```/gm" | ||
}, | ||
{ | ||
"name": "HTML Tags", | ||
"pattern": "<[^>]*>", | ||
"description": "Reference: https://stackoverflow.com/questions/11229831/regular-expression-to-remove-html-tags-from-a-string" | ||
} | ||
], | ||
"ignoreRegExpList": [ | ||
"Markdown links", | ||
"Markdown code blocks", | ||
"Inline code blocks", | ||
"Link contents", | ||
"Snippet references", | ||
"Snippet references 2", | ||
"Multi-line code blocks", | ||
"HTML Tags" | ||
], | ||
"ignorePaths": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters