Skip to content

Commit

Permalink
add spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyMatveev686 committed Oct 9, 2023
1 parent 4409518 commit 4493a76
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Markdownlint Action
on: push

jobs:
build:
name: Markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nosborn/[email protected]
name: Markdownlint
with:
files: "*/*/*.md */*/*/*.md Enumerations/*.md"
config_file: "spellcheck/.markdownlint.json"
14 changes: 14 additions & 0 deletions .github/workflows/spellcheck_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: spellcheck_2
on: push
jobs:
spellcheck:
runs-on: ubuntu-latest
name: Spellcheck
steps:
- uses: actions/checkout@v4
- uses: tbroadley/spellchecker-cli-action@v1
with:
files: '*/*/*.md */*/*/*.md Enumerations/*.md'
quiet: true
dictionaries: spellcheck/wordlist.txt
noSuggestions: true
13 changes: 13 additions & 0 deletions .github/workflows/spelling_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spellcheck Action
on: push
jobs:
build:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rojopolis/[email protected]
name: Spellcheck
with:
config_path: spellcheck/spellcheck.yml # put path to configuration file here
task_name: Markdown
15 changes: 15 additions & 0 deletions spellcheck/.markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"default": true,
"line-length": false,
"commands-show-output": false,
"no-bare-urls": false,
"no-multiple-blanks": false,
"MD033": {
"allowed_elements": [
"code",
"textarea",
"button",
"br"
]
}
}
20 changes: 20 additions & 0 deletions spellcheck/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
matrix:
- name: Markdown
sources:
- '*/*/*.md */*/*/*.md Enumerations/*.md'
default_encoding: utf-8
aspell:
lang: en
dictionary:
wordlists:
- 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
25 changes: 25 additions & 0 deletions spellcheck/wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ONLYOFFICE
breakpoint
DocumentBuilder
docbuilder
AddElement
AddLineBreak
AddText
Api
CloseFile
CreateFile
CreateParagraph
CreateRun
GetDocument
GetElement
SampleText
SaveFile
SetBold
docx
oDocument
oParagraph
oRun
CRM
textarea
V8_USE_INSPECTOR
F12

0 comments on commit 4493a76

Please sign in to comment.