https://github.com/optimizely/mdspell-config
https://github.com/optimizely/mdspell-config
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/optimizely/mdspell-config
- Owner: optimizely
- Archived: true
- Created: 2020-02-10T17:32:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-09T20:40:36.000Z (over 5 years ago)
- Last Synced: 2025-03-01T12:17:17.838Z (about 1 year ago)
- Size: 223 KB
- Stars: 0
- Watchers: 66
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# instructions
to be used along with `git@github.com:juancarlostong/node-markdown-spellcheck.git` in this branch: `jctong/generate_spelling_file`
```
for i in `ls |grep -- '-sdk$'`;do pushd $i; git checkout master; git pull; ln -s ~/gh/mdspell-config/.spelling; /Users/jtong/gh/node-markdown-spellcheck/bin/mdspell -a -n -r --en-us '**/*.md' 2>&1 >/dev/null | grep -v ^$ | sort | uniq > ~/gh/mdspell-config/$(basename $PWD); rm .spelling; popd; done
# merge newly generated file with existing .spelling dictionary
cat .spelling | sort | uniq > a
# compare line number difference between the existing .spelling and the "a" (the new .spelling)
wc -l a .spelling
# look at the differences
diff a .spelling
# make the new additions official
mv a .spelling
git add . && git commit && git push
```
inspect contents of .spelling and remove actual typos
notes for manually running:
```
ln -s ~/gh/mdspell-config/.spelling
/Users/jtong/gh/node-markdown-spellcheck/bin/mdspell -a -n -r --en-us '**/*.md' 2>&1 >/dev/null | grep -v ^$ | sort | uniq > ~/gh/mdspell-config/$(basename $PWD)
rm .spelling