Skip to content

Commit

Permalink
ci: check markdown documents with markdown-link-check
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosm committed Aug 12, 2024
1 parent d902201 commit db57774
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install lint utilities
run: sudo npm install -g [email protected]
run: sudo npm install -g [email protected] [email protected]
- name: Install Rust
run: ./ci/install-rust.sh stable --profile minimal
- run: ./ci/lint-aux.sh
Expand Down
4 changes: 4 additions & 0 deletions ci/lint-aux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ end_group
begin_group "Check markdown documents with markdownlint"
find . -type f -name "*.md" -not -path "./.git/*" -print0 | xargs -0 markdownlint
end_group

begin_group "Check markdown documents with markdown-link-check"
find . -type f -name "*.md" -not -path "./.git/*" -print0 | xargs -0 markdown-link-check -c markdown-link-check.json
end_group
13 changes: 13 additions & 0 deletions markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ignorePatterns": [
{
"pattern": "^http://"
},
{
"pattern": "^https://"
},
{
"pattern": "^svn://"
}
]
}

0 comments on commit db57774

Please sign in to comment.