diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml new file mode 100644 index 00000000..72893a80 --- /dev/null +++ b/.github/workflows/markdownlint.yml @@ -0,0 +1,14 @@ +name: Markdownlint Action +on: push + +jobs: + build: + name: Markdownlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: nosborn/github-action-markdown-cli@v3.3.0 + name: Markdownlint + with: + files: "*/*/*.md */*/*/*.md Enumerations/*.md" + config_file: "spellcheck/.markdownlint.json" diff --git a/.github/workflows/spellcheck_2.yml b/.github/workflows/spellcheck_2.yml new file mode 100644 index 00000000..35fe51a0 --- /dev/null +++ b/.github/workflows/spellcheck_2.yml @@ -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 diff --git a/.github/workflows/spelling_action.yml b/.github/workflows/spelling_action.yml new file mode 100644 index 00000000..ccad70d8 --- /dev/null +++ b/.github/workflows/spelling_action.yml @@ -0,0 +1,13 @@ +name: Spellcheck Action +on: push +jobs: + build: + name: Spellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: rojopolis/spellcheck-github-actions@0.34.0 + name: Spellcheck + with: + config_path: spellcheck/spellcheck.yml # put path to configuration file here + task_name: Markdown \ No newline at end of file diff --git a/spellcheck/.markdownlint.json b/spellcheck/.markdownlint.json new file mode 100644 index 00000000..ba4d7a56 --- /dev/null +++ b/spellcheck/.markdownlint.json @@ -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" + ] + } +} \ No newline at end of file diff --git a/spellcheck/spellcheck.yml b/spellcheck/spellcheck.yml new file mode 100644 index 00000000..4c6e994e --- /dev/null +++ b/spellcheck/spellcheck.yml @@ -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 diff --git a/spellcheck/wordlist.txt b/spellcheck/wordlist.txt new file mode 100644 index 00000000..3c7d60ea --- /dev/null +++ b/spellcheck/wordlist.txt @@ -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 \ No newline at end of file