diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8baa6df..2161216 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,8 @@ name: CI Build on: push: + paths-ignore: + - 'documentation/**' branches: [ master ] jobs: build: diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..9286d1a --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,19 @@ +name: spellcheck +on: + push: + paths: + - '**.asciidoc' + - '**.md' + - '**.adoc' + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: spellcheck checkout + uses: actions/checkout@v2 + - name: download dictionary + run: | + wget https://raw.githubusercontent.com/devonfw/.github/master/en-devonfw.dict -O ./en-devonfw.dict + - uses: igsekor/pyspelling-any@v0.0.2 + name: Spellcheck diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 26d0c33..d0dce01 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -17,6 +17,10 @@ on: # Triggers the workflow on push or pull request events but only for the develop branch push: branches: [ master ] + paths: + - '**.asciidoc' + - '**.md' + - '**.adoc' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.spellcheck.yml b/.spellcheck.yml new file mode 100644 index 0000000..194bdf2 --- /dev/null +++ b/.spellcheck.yml @@ -0,0 +1,24 @@ +matrix: +- name: asciidoc source py spell check configuration + aspell: + lang: en + d: en_US + sources: + - documentation/*.asciidoc + dictionary: + wordlists: + - en-devonfw.dict + output: en-devonfw.dic + pipeline: + - pyspelling.filters.url: + - pyspelling.filters.context: + context_visible_first: true + escapes: \\[\\-~] + delimiters: + # Ignore multiline content between fences (fences can have 4 or more hyphens) + # ---- + # content + # ---- + - open: '(?s)^(?P *-{4,})$' + close: '^(?P=open)$' +