Skip to content

Commit 1a9939f

Browse files
committed
Taking own medicine
1 parent d381d1a commit 1a9939f

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

.github/workflows/documentation.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,3 @@ jobs:
1212
# Check that documentation has not changed.
1313
- run: |
1414
git diff --exit-code docs/github-action-templates.md
15-
16-
lint-markdown:
17-
runs-on: ubuntu-latest
18-
name: Lint Markdown
19-
steps:
20-
- uses: actions/checkout@v4
21-
- uses: arduino/setup-task@v2
22-
- run: |
23-
task lint:markdown
24-
# Check that nothing has changed.
25-
- run: |
26-
git diff --exit-code

.github/workflows/markdown.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../github/workflows/markdown.yaml

.markdownlint.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config/markdownlint-cli/.markdownlint.jsonc

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config/markdownlint-cli/.markdownlintignore

Taskfile.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ tasks:
4444
lint:markdown:
4545
desc: "Lint Markdown"
4646
cmds:
47-
# itkdev/markdownlint does not support `--ignore-path`
48-
- docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint --config config/markdownlint-cli/.markdownlint.jsonc --ignore-path config/markdownlint-cli/.markdownlintignore {{.GLOB}} --fix
49-
- docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint --config config/markdownlint-cli/.markdownlint.jsonc --ignore-path config/markdownlint-cli/.markdownlintignore {{.GLOB}}
47+
# I cannot get itkdev/markdownlint to work as expected, i.e. as peterdavehello/markdownlint does …
48+
- docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint {{.GLOB}} --fix
49+
- docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint {{.GLOB}}
5050
vars:
5151
# We use a block scalar (https://yaml-multiline.info/#block-scalars) here to make escaping (a little) easier.
5252
GLOB: >-
53-
{{.CLI_ARGS | default "\\'**/*.md\\'"}}
53+
{{.CLI_ARGS | default "'**/*.md'"}}
5454
5555
default:
5656
cmds:

0 commit comments

Comments
 (0)