Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3600 from SeanKilleen/docs-spellcheck
Automated docs spell-checking via GitHub Actions (and address all reported issues)
- Loading branch information
Showing
14 changed files
with
183 additions
and
60 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,28 @@ | ||
name: Documentation Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- 'packages/mermaid/src/docs/**/*' | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- 'packages/mermaid/src/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 "packages/mermaid/src/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,95 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en", | ||
"words": [ | ||
"customizability", | ||
"Gantt", | ||
"jison", | ||
"knsv", | ||
"Knut", | ||
"mindmap", | ||
"Mindmaps", | ||
"mitigations", | ||
"sandboxed", | ||
"Sveidqvist", | ||
"verdana", | ||
"Visio" | ||
], | ||
"ignoreWords": [ | ||
"Adamiecki", | ||
"applitools", | ||
"Asciidoctor", | ||
"Astah", | ||
"Bisheng", | ||
"codedoc", | ||
"Docsy", | ||
"Doku", | ||
"Gitea", | ||
"Gitgraph", | ||
"Grav", | ||
"Inkdrop", | ||
"Jaoude", | ||
"mdbook", | ||
"mermerd", | ||
"mkdocs", | ||
"phpbb", | ||
"Plantuml", | ||
"Playfair's", | ||
"Podlite", | ||
"redmine", | ||
"sphinxcontrib", | ||
"Tuleap" | ||
], | ||
"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": ["packages/mermaid/src/docs/CHANGELOG.md"] | ||
} |
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
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
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
Oops, something went wrong.