Skip to content

Commit 5d0a4bc

Browse files
authored
Merge pull request #1742 from PeterDaveHello/markdown-link-check-workaround
2 parents 84755fd + 583afee commit 5d0a4bc

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/markdown-link-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- "**/*.md"
7+
- ".markdown-link-check.json"
78

89
permissions:
910
contents: read
@@ -19,4 +20,4 @@ jobs:
1920
- name: Install markdown-link-check
2021
run: npm i -g markdown-link-check
2122
- name: Run markdown-link-check on MD files
22-
run: find . -name "*.md" | xargs -n 1 markdown-link-check -q
23+
run: find . -name "*.md" | xargs -n 1 markdown-link-check -c markdown_link_check_config.json -q

markdown_link_check_config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"httpHeaders": [
3+
{
4+
"urls": [
5+
"https://docs.github.com"
6+
],
7+
"headers": {
8+
"Accept-Encoding": "br, gzip, deflate"
9+
}
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)