diff --git a/.github/workflows/lint-markdown.yml b/.github/workflows/lint-markdown.yml new file mode 100644 index 000000000..8b3e2c8d7 --- /dev/null +++ b/.github/workflows/lint-markdown.yml @@ -0,0 +1,25 @@ +name: "Lint Markdown" + +on: + merge_group: + pull_request: + push: + branches: [ master ] + +jobs: + lint_project: + name: "Lint Markdown" + runs-on: ubuntu-latest + permissions: + statuses: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Lint Markdown + uses: DavidAnson/markdownlint-cli2-action@v16 + with: + config: ".markdownlint.jsonc" + globs: "docs/**/*.md" diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc new file mode 100644 index 000000000..75601d814 --- /dev/null +++ b/.markdownlint.jsonc @@ -0,0 +1,8 @@ +// https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.jsonc +{ + "MD013": { + "line_length": 120, + "heading_line_length": 120, + "code_block_line_length": 120 + } +}