Skip to content

Commit fc89b1a

Browse files
committed
ci: fix link checker
Adds a config .mlc_config.json to the root dir. This enables us to filter patterns such as crates.io. I took the liberty of adding additional configs that I am using in other repos that depend on markdown-link-check CI action. Closes #8.
1 parent 710814f commit fc89b1a

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/check-links.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ jobs:
2222
with:
2323
use-quiet-mode: 'yes'
2424
use-verbose-mode: 'yes'
25-
max-depth: 0
25+
max-depth: 0
26+
config-file: ".mlc_config.json"

.mlc_config.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"aliveStatusCodes": [
3+
403,
4+
200,
5+
206
6+
],
7+
"httpHeaders": [
8+
{
9+
"urls": [
10+
"https://github.com/",
11+
"https://guides.github.com/",
12+
"https://help.github.com/",
13+
"https://docs.github.com/"
14+
],
15+
"headers": {
16+
"Accept-Encoding": "zstd, br, gzip, deflate"
17+
}
18+
}
19+
],
20+
"retryOn429": true,
21+
"ignorePatterns": [
22+
{
23+
"pattern": "/github/workspace/.*"
24+
},
25+
{
26+
"pattern": "crates.io"
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)