Clean up markdown-link-check warnings (#1395)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Jeff Handley 2026-02-28 09:33:36 -08:00 • committed by GitHub
commit 06563e233d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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