Clean up markdown-link-check warnings (#1395)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
94aa6952eb
commit
06563e233d
1 changed files with 25 additions and 9 deletions
12
.github/workflows/markdown-link-check.yml
vendored
12
.github/workflows/markdown-link-check.yml
vendored
|
|
@ -21,5 +21,13 @@ jobs:
|
|||
- name: Markup Link Checker (mlc)
|
||||
uses: becheran/mlc@7ec24825cefe0c9c8c6bac48430e1f69e3ec356e # v1.2.0
|
||||
with:
|
||||
# Ignore external links that result in 403 errors during CI. Do not warn for redirects where we want to keep the vanity URL in the markdown or for GitHub links that redirect to the login, and DocFX snippet links.
|
||||
args: --ignore-links "https://www.anthropic.com/*,https://hackerone.com/anthropic-vdp/*" --do-not-warn-for-redirect-to "https://modelcontextprotocol.io/*,https://github.com/login?*" --ignore-links "*samples/*?name=snippet_*" ./docs
|
||||
# Ignore DocFX cross-reference links (xref:) that mlc cannot check.
|
||||
# Ignore DocFX snippet inclusion links.
|
||||
# Do not warn for learn.microsoft.com locale redirects.
|
||||
# Do not warn for modelcontextprotocol.io homepage/spec redirects.
|
||||
args: >-
|
||||
--ignore-links "xref:*"
|
||||
--ignore-links "*samples/*?name=snippet_*"
|
||||
--do-not-warn-for-redirect-to "https://learn.microsoft.com/en-us/*"
|
||||
--do-not-warn-for-redirect-to "https://modelcontextprotocol.io/*"
|
||||
./docs
|
||||
|
|
|
|||
Loading…
Reference in a new issue