Skip to content

Commit

Permalink
Add markdown-link-check GitHub Docs workaround, cc nodejs#1739
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Jun 21, 2022
1 parent 84755fd commit 583afee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- "**/*.md"
- ".markdown-link-check.json"

permissions:
contents: read
Expand All @@ -19,4 +20,4 @@ jobs:
- name: Install markdown-link-check
run: npm i -g markdown-link-check
- name: Run markdown-link-check on MD files
run: find . -name "*.md" | xargs -n 1 markdown-link-check -q
run: find . -name "*.md" | xargs -n 1 markdown-link-check -c markdown_link_check_config.json -q
12 changes: 12 additions & 0 deletions markdown_link_check_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"httpHeaders": [
{
"urls": [
"https://docs.github.com"
],
"headers": {
"Accept-Encoding": "br, gzip, deflate"
}
}
]
}

0 comments on commit 583afee

Please sign in to comment.