Skip to content

Commit 7987387

Browse files
os-zhuangclaude
andcommitted
ci(links): fix the stale lychee config key that kept the check disabled
Re-arming check-links surfaced why it was commented out in the first place: lychee rejects the config outright — `follow_redirects` is not a recognized key in the version the action pins, so the job died before checking a single link. Replaced with `max_redirects` (lychee follows redirects by default; this caps the chain). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 772a87a commit 7987387

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

lychee.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@
55
# Maximum number of concurrent requests
66
max_concurrency = 10
77

8-
# Accept status codes (2xx = success)
9-
accept = [200, 204, 206, 301, 302, 307, 308, 429]
8+
# Accept status codes (2xx = success). Strings, per lychee's config schema.
9+
accept = ["200", "204", "206", "301", "302", "307", "308", "429"]
1010

1111
# Timeout for requests (in seconds)
1212
timeout = 30
1313

1414
# Retry failed requests
1515
max_retries = 2
1616

17-
# Follow redirects
18-
follow_redirects = true
17+
# Follow redirects (lychee follows by default; this caps the chain)
18+
max_redirects = 5
1919

20-
# Check anchors/fragments in links
21-
include_fragments = false
20+
# Fragment checking is intentionally left at lychee's default (off). The
21+
# generated reference pages link to section anchors that only exist once MDX is
22+
# rendered, so checking fragments against the source files would report every
23+
# one of them as broken. (`include_fragments` takes a string like "full" in
24+
# lychee ≥0.24 — the old boolean form is what silently broke this config.)
2225

2326
# Verbose output
2427
# Accepts log level: "error", "warn", "info", "debug", "trace"

0 commit comments

Comments
 (0)