Skip to content

Commit a706499

Browse files
committed
Add markdown lint
1 parent 78f7666 commit a706499

File tree

4 files changed

+252
-217
lines changed

4 files changed

+252
-217
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,37 @@ assignees: ''
77

88
---
99

10-
**What happened?**
10+
## What happened?
11+
1112
A clear and concise description of what the bug is.
1213

13-
**What did you expect to happen?**
14+
## What did you expect to happen?
15+
1416
A clear and concise description of what you expected to happen.
1517

16-
**How can we reproduce the behavior you experienced?**
18+
## How can we reproduce the behavior you experienced?
19+
1720
Steps to reproduce the behavior:
21+
1822
1. Step 1
1923
2. Step 2
2024
3. Step 3
2125
4. Step 4
2226

2327
In case this is related to specific markdown, please provide a minimal markdown example here.
2428

25-
**Information (please complete the following information)**
29+
## Further Information (please complete the following information)
2630

27-
- Mark Version (`mark --version`): [e.g. v9.1.4]
28-
- Mark Parameters: [e.g. `--drop-h1 --title-from-h1`]
29-
- Confluence Hosting: [e.g. Cloud, Server or Datacenter]
30-
- Confluence Version: [e.g. v7.13]
31-
- Environment specific Information: [e.g. running in Github Actions, or on Mac OS X, etc.]
31+
* Mark Version (`mark --version`): [e.g. v9.1.4]
32+
* Mark Parameters: [e.g. `--drop-h1 --title-from-h1`]
33+
* Confluence Hosting: [e.g. Cloud, Server or Datacenter]
34+
* Confluence Version: [e.g. v7.13]
35+
* Environment specific Information: [e.g. running in Github Actions, or on Mac OS X, etc.]
36+
37+
## Logs or other output
3238

33-
**Logs or other output**
3439
Please provide logs, other kind of output here.
3540

36-
**Additional context**
37-
Add any other context about the problem here.
41+
## Additional context
3842

43+
Add any other context about the problem here.

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ jobs:
3131
- name: golangci-lint
3232
uses: golangci/golangci-lint-action@v3
3333

34+
# Runs markdown-lint on the markdown files
35+
ci-markdown-lint:
36+
name: ci-markdown-lint
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Check out code into the Go module directory
40+
uses: actions/checkout@v4
41+
- name: markdownlint-cli2-action
42+
uses: DavidAnson/markdownlint-cli2-action@v14
43+
3444
# Executes Unit Tests
3545
ci-unit-tests:
3646
name: ci-unit-tests

.markdownlint-cli2.jsonc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"globs": [
3+
"*.md",
4+
".github/**/*.md"
5+
],
6+
7+
// ToDo: Following rules can't be fixed automatically. They should be enabled when fixed.
8+
"config": {
9+
"MD013": false, // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md013---line-length
10+
"MD033": false // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md033---inline-html
11+
}
12+
}

0 commit comments

Comments
 (0)