forked from ONLYOFFICE/office-js-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
235153e
commit bfc7bed
Showing
3 changed files
with
16 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters