Skip to content

Commit

Permalink
Create check_broken_link_mdx_config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
myronkaifung authored Oct 10, 2024
1 parent 7232182 commit 17f45cf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check_broken_link_mdx_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"projectBaseUrl":"https:\/\/docs.mixpanel.com",
"ignorePatterns": [
{
"pattern": ".*{PROJECT_ID}.*",
"reason": "ignore links with dynamic parameters"
},
{
"pattern": "^.*.(png|jpg|jpeg|webp|gif|mp4|svg)$",
"reason": "ignore media since we can't predict all output urls"
},
{
"pattern": "^.*.md$",
"reason": "ignore md"
},
{
"pattern": "^.*loom.com.*",
"reason": "ignore links from Loom embeds"
}
],
"replacementPatterns": [
{
"pattern": "^\/docs\/",
"replacement": "https:\/\/docs.mixpanel.com\/docs\/"
},
{
"pattern": "^\/guides\/",
"replacement": "https:\/\/docs.mixpanel.com\/guides\/"
},
{
"pattern": "^\/changelogs\/",
"replacement": "https:\/\/docs.mixpanel.com\/changelogs\/"
}
],
"timeout": "20s",
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 0]
}

0 comments on commit 17f45cf

Please sign in to comment.