Skip to content

Commit

Permalink
add spellchecker, some doc clean up (#22)
Browse files Browse the repository at this point in the history
we will not block merges based on spelling yet, as there are many

spell checking should work in the devcontainer as it does in CI, except in CI we're only checking the docs folder
  • Loading branch information
caindy authored Jan 12, 2024
1 parent 001f8ce commit 0eedb4f
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 3,900 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"Redocly.openapi-vs-code",
"emeraldwalk.RunOnSave",
"42Crunch.vscode-openapi",
"stoplight.spectral"
"stoplight.spectral",
"pomdtr.excalidraw-editor",
"streetsidesoftware.code-spell-checker"
]
}
},
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Check spelling'
on: # rebuild any PRs and main branch changes
push:
branches:
- 1.0.0*
pull_request:
branches:
- 1.0.0*

jobs:
spellcheck: # run the action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@v5
with:
incremental_files_only: false
config: 'cspell.json'
# eventually we intend to fail the build on spelling errors
# so we restrict this to the docs folder
root: './docs'
# only warn for now
inline: warning # error
strict: false # true fails the build
Loading

0 comments on commit 0eedb4f

Please sign in to comment.