From db907951063405aff90a2ee84d3d99a801e01817 Mon Sep 17 00:00:00 2001 From: lmartella Date: Thu, 13 Jun 2024 17:27:49 +0200 Subject: [PATCH] feat(doc): add valeCLI github action to automatically lint extension documentation. --- .github/styles/Custom/HeadingNestingDepth.yml | 7 ++++ .../styles/Custom/SingleStatementPerLine.yml | 9 ++++ .../accept.txt | 12 ++++++ .github/workflows/lint-with-vale.yml | 24 +++++++++++ .vale.ini | 41 +++++++++++++++++++ 5 files changed, 93 insertions(+) create mode 100644 .github/styles/Custom/HeadingNestingDepth.yml create mode 100644 .github/styles/Custom/SingleStatementPerLine.yml create mode 100644 .github/styles/config/vocabularies/quarkus-kafka-streams-definitions/accept.txt create mode 100644 .github/workflows/lint-with-vale.yml create mode 100644 .vale.ini diff --git a/.github/styles/Custom/HeadingNestingDepth.yml b/.github/styles/Custom/HeadingNestingDepth.yml new file mode 100644 index 0000000..82359ec --- /dev/null +++ b/.github/styles/Custom/HeadingNestingDepth.yml @@ -0,0 +1,7 @@ +--- +extends: existence +message: 'The subheading "%s" is nested too deeply. The max heading nesting depth is set to 3.' +level: error +scope: raw +raw: + - '(?<=\n)={4,}\s.+' \ No newline at end of file diff --git a/.github/styles/Custom/SingleStatementPerLine.yml b/.github/styles/Custom/SingleStatementPerLine.yml new file mode 100644 index 0000000..f6a683d --- /dev/null +++ b/.github/styles/Custom/SingleStatementPerLine.yml @@ -0,0 +1,9 @@ +--- +extends: occurrence +message: Only use one sentence per line. +level: error +scope: + - paragraph + - list +max: 1 +token: '(?