File tree Expand file tree Collapse file tree 4 files changed +48
-12
lines changed Expand file tree Collapse file tree 4 files changed +48
-12
lines changed Original file line number Diff line number Diff line change 22# github/workflows/markdown.yaml in
33# https://github.com/itk-dev/devops_itkdev-docker if need be.
44
5- # ## ## Markdown
5+ # ## ### Markdown
66# ##
7- # ## Uses [itkdev/markdownlint](https://hub.docker.com/r/itkdev/markdownlint) to
8- # ## link all Markdown files (`**/*.md`) in the project.
7+ # ## Lints Markdown files (`**/*.md`) in the project.
98# ##
10- # ## [markdownlint-cli configuration ### files](https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration),
11- # ## `.markdownlint.jsonc` and `.markdownlintignore` control what is actually linted and how.
9+ # ## [markdownlint-cli configuration
10+ # ## files](https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration),
11+ # ## `.markdownlint.jsonc` and `.markdownlintignore`, control what is actually
12+ # ## linted and how.
13+ # ##
14+ # ## #### Assumptions
15+ # ##
16+ # ## 1. A docker compose service named `markdownlint` for running `markdownlint`
17+ # ## (from
18+ # ## [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli))
19+ # ## exists.
1220
1321name : Markdown
1422
1523on :
1624 pull_request :
1725 push :
26+ branches :
27+ - main
28+ - develop
1829
1930jobs :
2031 markdown-lint :
2637 uses : actions/checkout@v4
2738
2839 - run : |
29- docker run --rm --volume "$PWD":/md itkdev/markdownlint '**/*.md'
40+ docker network create frontend
41+
42+ - run : |
43+ docker compose run --rm markdownlint markdownlint '**/*.md'
Original file line number Diff line number Diff line change 1+ services :
2+ markdownlint :
3+ image : itkdev/markdownlint
4+ profiles :
5+ - dev
6+ volumes :
7+ - ./:/md
Original file line number Diff line number Diff line change 11<!-- DO NOT EDIT THIS FILE!
22
3- It was automatically created at 2025-05-05T10:20:02 +02:00
3+ It was automatically created at 2025-05-06T10:12:47 +02:00
44by task/scripts/github-documentation-update
55based on /app/task/scripts/../templates/github-actions-templates.md
66-->
@@ -142,14 +142,20 @@ Validates styles files.
142142
143143### Markdown
144144
145- Uses [ itkdev/markdownlint] ( https://hub.docker.com/r/itkdev/markdownlint ) to
146- link all Markdown files (` **/*.md ` ) in the project.
145+ Lints Markdown files (` **/*.md ` ) in the project.
147146
148147[ markdownlint-cli configuration
149148files] ( https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration ) ,
150149` .markdownlint.jsonc ` and ` .markdownlintignore ` , control what is actually
151150linted and how.
152151
152+ #### Assumptions
153+
154+ 1 . A docker compose service named ` markdownlint ` for running ` markdownlint `
155+ (from
156+ [ markdownlint-cli] ( https://github.com/igorshubovych/markdownlint-cli ) )
157+ exists.
158+
153159---
154160
155161[ github/workflows/symfony/php.yaml] ( github/workflows/symfony/php.yaml )
Original file line number Diff line number Diff line change 44
55# ## ### Markdown
66# ##
7- # ## Uses [itkdev/markdownlint](https://hub.docker.com/r/itkdev/markdownlint) to
8- # ## link all Markdown files (`**/*.md`) in the project.
7+ # ## Lints Markdown files (`**/*.md`) in the project.
98# ##
109# ## [markdownlint-cli configuration
1110# ## files](https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration),
1211# ## `.markdownlint.jsonc` and `.markdownlintignore`, control what is actually
1312# ## linted and how.
13+ # ##
14+ # ## #### Assumptions
15+ # ##
16+ # ## 1. A docker compose service named `markdownlint` for running `markdownlint`
17+ # ## (from
18+ # ## [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli))
19+ # ## exists.
1420
1521name : Markdown
1622
3137 uses : actions/checkout@v4
3238
3339 - run : |
34- docker run --rm --volume "$PWD":/md itkdev/markdownlint '**/*.md'
40+ docker network create frontend
41+
42+ - run : |
43+ docker compose run --rm markdownlint markdownlint '**/*.md'
You can’t perform that action at this time.
0 commit comments