mirror of
https://github.com/libp2p/go-libp2p.git
synced 2026-04-22 16:17:19 +08:00
docs: Add a Github workflow for checking dead links (#2406)
Co-authored-by: Sahib Yar <sahib.yar@securiti.ai> Co-authored-by: Marco Munizaga <marco@marcopolo.io>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: Markdown Link Checking
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
check-links:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||
with:
|
||||
use-quiet-mode: 'yes' # show only broken links
|
||||
use-verbose-mode: 'yes'
|
||||
config-file: .github/workflows/markdown-links-config.json # for removing any false positives
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"ignorePatterns": [
|
||||
{
|
||||
"pattern": "^http://localhost"
|
||||
},
|
||||
{
|
||||
"pattern": "^https://twitter.com/"
|
||||
},
|
||||
{
|
||||
"pattern": "^https://opensource.org/"
|
||||
}
|
||||
],
|
||||
"aliveStatusCodes": [200],
|
||||
"httpHeaders": [
|
||||
{
|
||||
"urls": ["https://docs.github.com/"],
|
||||
"headers": {
|
||||
"Accept-Encoding": "*"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user