@@ -21,7 +21,8 @@ name: Link check
2121# cross-page links in the Fern docs use a `.md` extension while the source files
2222# are `.mdx`, so filesystem-level checking of relative links would report ~600
2323# false positives; that convention is out of scope here. GitHub links are NOT
24- # excluded (GITHUB_TOKEN is supplied to avoid rate limits).
24+ # excluded. File links are checked through GitHub's raw-content endpoint to
25+ # avoid transient 503s from HTML pages; GITHUB_TOKEN supports API fallback.
2526
2627on :
2728 pull_request :
@@ -46,20 +47,24 @@ jobs:
4647 fail : true
4748 # TODO(kimi-k3): drop the two kimi_k3 / kimi-k3 excludes below once this PR is
4849 # merged. They point at files added by the same PR, so blob/main 404s until then.
50+ # Keep requests bounded and check file availability without GitHub HTML rendering.
4951 args : >-
5052 --no-progress
53+ --max-concurrency 8
54+ --host-concurrency 2
5155 --max-retries 3
5256 --retry-wait-time 10
5357 --scheme https
5458 --scheme http
5559 --accept '200..=299,401,403,429'
5660 --root-dir docs/fern
57- --exclude 'github\.com/deepseek-ai/DeepSeek-V4'
61+ --remap '^https://github\.com/([^/]+/[^/]+)/blob/(.+)$ https://raw.githubusercontent.com/$1/$2'
62+ --exclude '(github\.com|raw\.githubusercontent\.com)/deepseek-ai/DeepSeek-V4'
5863 --exclude 'github\.com/NVIDIA-NeMo/Megatron-Bridge/stargazers'
5964 --exclude 'sched\.com'
6065 --exclude 'llama\.com'
61- --exclude 'Megatron-Bridge/blob/main/src/megatron/bridge/models/kimi/kimi_k3_'
62- --exclude 'Megatron-Bridge/blob/main/examples/model_verification_cards/kimi-k3/'
66+ --exclude 'Megatron-Bridge/( blob/)? main/src/megatron/bridge/models/kimi/kimi_k3_'
67+ --exclude 'Megatron-Bridge/( blob/)? main/examples/model_verification_cards/kimi-k3/'
6368 "docs/fern/**/*.mdx"
6469 "docs/**/*.md"
6570 env :
0 commit comments