mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-09 14:38:08 -05:00
Add new spellcheck utility
This commit is contained in:
17
bin/util/update_spellings_list.sh
Executable file
17
bin/util/update_spellings_list.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update the spellings list with all the current "mis-spellings"
|
||||
|
||||
here=$(dirname "$0")
|
||||
wordlist=$here/../../src/spellings.en.pws
|
||||
newlist=$(mktemp)
|
||||
|
||||
$here/make_spellings_list.sh > $newlist
|
||||
|
||||
count=$(cat $newlist | wc -l)
|
||||
|
||||
# Add header line
|
||||
echo "personal_ws-1.1 en $count utf-8" > $wordlist
|
||||
cat $newlist >> $wordlist
|
||||
|
||||
rm $newlist
|
||||
@@ -14,6 +14,7 @@
|
||||
"check": "node --input-type=module -e 'import { runChecks } from \"./bin/build/prebuild.mjs\"; runChecks()'",
|
||||
"links": "bin/util/check_urls.sh src/book.md",
|
||||
"spell": "bin/util/check_spellings_list.sh",
|
||||
"spfix": "bin/util/update_spellings_list.sh",
|
||||
"valid": "node -e 'require(\"./bin/util/validate\").validateHtml(\"public/index.html\")'",
|
||||
"gramm": "bin/util/check_grammar.sh src/book.md",
|
||||
"patch": "npx patch-package",
|
||||
|
||||
Reference in New Issue
Block a user