Use crate-ci/typos action to check for typos

The misspell tool that we used previously has no exclude switch for ignoring translated files. Also, it looks like it is not maintained anymore.

In addition to changing our spell checker, this commit renames the `Build Site` workflow to `Blog` (to be consistent with our `Code` workflow).
This commit is contained in:
Philipp Oppermann
2021-10-17 17:16:02 +02:00
parent ac8f0175a7
commit 53e3578e34
2 changed files with 18 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
name: Build Site name: Blog
on: on:
push: push:
@@ -59,10 +59,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- run: curl -L https://git.io/misspell | bash - name: Typo Check
name: "Install misspell" uses: crate-ci/typos@v1.1.9
- run: bin/misspell -error blog/content with:
name: "Check for common typos" files: blog
deploy_site: deploy_site:
name: "Deploy Generated Site" name: "Deploy Generated Site"

13
blog/typos.toml Normal file
View File

@@ -0,0 +1,13 @@
[files]
extend-exclude = [
"*.svg",
"*.zh-CN.md",
"*.ja.md",
]
[default.extend-words]
IST = "IST" # Interrupt Stack Table
[default.extend-identifiers]
TheBegining = "TheBegining" # GitHub user mentioned in status reports
h015bf61815bb8afe = "h015bf61815bb8afe" # mangled name used in code example