Skip to content

Commit

Permalink
ci: fix checking of github.com links
Browse files Browse the repository at this point in the history
run check:markdown reports back failure status if bad links are found
  • Loading branch information
MikeMcC399 committed Dec 13, 2022
1 parent 57031a3 commit c1717b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions md-linkcheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"httpHeaders": [
{
"urls": [
"https://github.com/",
"https://guides.github.com/",
"https://docs.github.com/",
"https://help.github.com/",
"https://support.github.com"
],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "echo \"There are no tests :(\"",
"build": "ncc build -o dist index.js",
"format": "prettier --write index.js",
"check:markdown": "find *.md -exec npx markdown-link-check {} \\;",
"check:markdown": "find *.md -print0 | xargs -0 -n1 markdown-link-check -c md-linkcheck.json",
"install-v10-deps": "./scripts/npm-install-v10-examples.sh"
},
"repository": {
Expand Down

0 comments on commit c1717b5

Please sign in to comment.