Skip to content

Commit

Permalink
Merge pull request #944 from aramase/fix-md-link-check
Browse files Browse the repository at this point in the history
ci: fix markdown link check workflow failures
  • Loading branch information
k8s-ci-robot committed May 10, 2022
2 parents 09d920a + 384db8b commit 56b955e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/markdown-link-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Check Markdown links

on:
push:
paths:
- "**.md"
branches:
- main
pull_request:
branches:
- main
paths:
- "**.md"
schedule:
- cron: "0 9 * * *"

Expand All @@ -25,3 +29,4 @@ jobs:
use-quiet-mode: 'yes'
# this will show detailed HTTP status for checked links
use-verbose-mode: 'yes'
config-file: .markdownlinkcheck.json
22 changes: 22 additions & 0 deletions .markdownlinkcheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"httpHeaders": [
{
"comment": "Workaround as suggested here: https://github.com/tcort/markdown-link-check/issues/201",
"urls": [
"https://docs.github.com/"
],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
],
"timeout": "5s",
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [
200,
206
]
}

2 changes: 1 addition & 1 deletion docs/book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
- [Load tests](./load-tests.md)
- [Testing](./testing.md)
- [Known Limitations](./known-limitations.md)
- [Release Managment](./release-management.md)
- [Release Management](./release-management.md)
- [Design docs](./design-docs.md)

0 comments on commit 56b955e

Please sign in to comment.