Skip to content

Commit

Permalink
Change spellchecking.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyMatveev686 committed Oct 25, 2023
1 parent 235153e commit bfc7bed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 54 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
name: spellcheck
name: Spellcheck Action
on: push

jobs:
spelling:
build:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v4
- uses: rojopolis/[email protected]
name: Spellcheck
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pyspelling
- name: Install Hunspell
run: |
sudo apt-get install hunspell hunspell-en-us
- name: Build documents
run: |
# Perform any documentation building that might be required
- name: Spell check
run: |
python -m pyspelling -s hunspell -c spellcheck/spellcheck.yml
config_path: spellcheck/spellcheck.yml # put path to configuration file here
task_name: Markdown
13 changes: 8 additions & 5 deletions spellcheck/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
matrix:
- name: Markdown
sources:
- '**/**/*.md'
default_encoding: utf-8
hunspell:
d: en_US
ignore-case: true
dictionary:
wordlists:
- spellcheck/wordlist.txt
- spellcheck/wordlist.txt # <-- put path to custom dictionary file here
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- pymdownx.superfences
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
sources:
- '**/**/*.md'
default_encoding: utf-8
- pre
31 changes: 1 addition & 30 deletions spellcheck/wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ ApiDrawing
oApiTheme
ApiTheme
JSON
json
bWriteAllMasLayouts
bWriteLayout
bWriteMaster
Expand Down Expand Up @@ -1771,32 +1770,4 @@ bComb
bAutoFit
bMultiline
UniColor
todo
javascript
oTextForm
oCopyForm
bFixedCopy
bFixed
oCopyTextForm
sFormType
oMyNewRunStyle
oMyNewRunStyle1
oMyNewRunStyle2
oMyNewRunStyle3
oTextPr1
oTextPr2
oTextPr3
sClassType
Calibri
noncommercially
fullname
6d
6b
oTableStyle
sTableStyleName
CustomTableStyle
oTableStyleType
oTable
oStyleFromJSON
oParaPr
oCellContent
todo

0 comments on commit bfc7bed

Please sign in to comment.