Skip to content

Commit 39fde95

Browse files
ci: add markdownlint job to CI
Add a markdownlint job that runs on all .md files using the igorshubovych/markdownlint-cli Docker image. Includes a config file to disable MD013 (line length) and MD003 (heading style) rules to avoid false positives on existing documentation. Fixes #692
1 parent 5358859 commit 39fde95

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ jobs:
5252
cargo clippy
5353
- name: docs
5454
run: cargo doc --all-features
55+
markdownlint:
56+
name: Markdown Lint
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: checkout
60+
uses: actions/checkout@v7
61+
- name: markdownlint
62+
uses: docker://ghcr.io/igorshubovych/markdownlint-cli:v0.41.0
63+
with:
64+
args: .
5565
miri:
5666
name: Miri
5767
runs-on: ubuntu-latest

‎.markdownlint.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"default": true,
3+
"MD013": false,
4+
"MD003": false
5+
}

0 commit comments

Comments
 (0)