Skip to content

Commit

Permalink
updated spellchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
funkill committed Jan 5, 2025
1 parent ceb4e1a commit f88ccd3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,36 @@ jobs:
name: Spellchecking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 200
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: rust-lang-ru/common-configs
path: common-configs
- run: npm install yaspeller
- run: git show -m --name-only -1 --format="format:" | grep --color=never -i '.md' | xargs node_modules/.bin/yaspeller -c common-configs/.yaspellerrc
- name: Get all changed markdown files
uses: tj-actions/changed-files@v45
id: changed_files
with:
files: |
rustbook-ru/**/*.md
README.md
- name: List changed files
if: steps.changed_files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
- uses: funkill/spellcheck-github-actions@hunspell-support-action
if: steps.changed_files.outputs.any_changed == 'true'
with:
task_name: Markdown
source_files: ${{ steps.changed_files.outputs.all_changed_files }}
gitlocalize-bug-checking:
name: Checking Gitlocalize bugs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 200
- uses: rust-lang-ru/simpleinfra/gitocalize-bug-checker@master
Expand Down
18 changes: 18 additions & 0 deletions spellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
matrix:
- name: Markdown
hunspell:
d: ru_RU,en_US
dictionary:
wordlists:
- common-configs/wordlist.txt
encoding: utf-8
pipeline:
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
sources:
- 'rustbook-ru/**/*.md'
- README.md
default_encoding: utf-8

0 comments on commit f88ccd3

Please sign in to comment.