diff --git a/.github/workflows/vale-pr-builder.yaml b/.github/workflows/vale-pr-builder.yaml new file mode 100644 index 000000000..401d612a2 --- /dev/null +++ b/.github/workflows/vale-pr-builder.yaml @@ -0,0 +1,23 @@ +name: Vale PR linter + +on: + # pull_request_target: + pull_request: + branches: + - main + +jobs: + vale: + runs-on: ubuntu-latest + + steps: + # TODO extract to re-usable workflow, merge into existing validation? + - uses: actions/checkout@v4 + with: + submodules: 'true' + token: ${{ secrets.GH_TOKEN }} + - run: sudo apt-get install -y asciidoctor + - uses: errata-ai/vale-action@v2 + with: + token: ${{ secrets.GH_TOKEN }} + vale_flags: "--config=hz-vale/.vale.ini --glob=*.adoc" diff --git a/.gitignore b/.gitignore index 57007745b..8f153fa45 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /target/ .classpath global-antora-playbook.yml +/styles/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..05abf790c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "hz-vale"] + path = hz-vale + url = https://github.com/hazelcast/vale.git diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 000000000..35d0ab4ef --- /dev/null +++ b/.vale.ini @@ -0,0 +1 @@ +Packages = hz-vale diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..79069cb13 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "chrischinchilla.vale-vscode" + ] +} diff --git a/docs/modules/configuration/pages/configuring-programmatically.adoc b/docs/modules/configuration/pages/configuring-programmatically.adoc index 913323f86..4b0140b08 100644 --- a/docs/modules/configuration/pages/configuring-programmatically.adoc +++ b/docs/modules/configuration/pages/configuring-programmatically.adoc @@ -5,6 +5,7 @@ You can create a `Config` object, set/change its properties and attributes, and use it to create new instances of members and clients. The following example configures some network and map properties for a member. +Also, dogs are well good and actualy cool. [source,java] ---- diff --git a/hz-vale b/hz-vale new file mode 160000 index 000000000..d75e6ba9b --- /dev/null +++ b/hz-vale @@ -0,0 +1 @@ +Subproject commit d75e6ba9ba6e7caa24479d12aa4122649a928583