Skip to content

Commit 4d191da

Browse files
committed
Add Markdown documentation linting
Signed-off-by: msteslov <msteslov@edu.hse.ru>
1 parent 5a8d047 commit 4d191da

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/basic.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ jobs:
3434
- name: Validate CBOM
3535
run: scripts/validate_cbom.sh
3636

37+
markdownlint:
38+
name: Check Markdown documentation
39+
needs: [workflowcheck]
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v4
44+
- name: Install rumdl
45+
run: python3 -m pip install --user rumdl==0.2.4
46+
- name: Ensure Markdown conventions are upheld
47+
run: ~/.local/bin/rumdl check --config .rumdl.toml --respect-gitignore --exclude "build,**/build" .
48+
3749
upstreamcheck:
3850
name: Check upstream code is properly integrated
3951
needs: [workflowcheck]

.rumdl.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[global]
2+
# Keep the initial lint configuration focused on Markdown rules that match the
3+
# existing documentation style and do not require unrelated documentation churn.
4+
enable = [
5+
"MD001", # heading-increment
6+
"MD004", # ul-style
7+
"MD011", # no-reversed-links
8+
"MD014", # commands-show-output
9+
"MD018", # no-missing-space-atx
10+
"MD019", # no-multiple-space-atx
11+
"MD020", # no-missing-space-closed-atx
12+
"MD021", # no-multiple-space-closed-atx
13+
"MD023", # heading-start-left
14+
"MD026", # no-trailing-punctuation
15+
"MD027", # no-multiple-space-blockquote
16+
"MD028", # no-blanks-blockquote
17+
"MD035", # hr-style
18+
"MD037", # no-space-in-emphasis
19+
"MD039", # no-space-in-links
20+
"MD042", # no-empty-links
21+
"MD043", # required-headings
22+
"MD044", # proper-names
23+
"MD045", # no-alt-text
24+
"MD048", # code-fence-style
25+
]

0 commit comments

Comments
 (0)