Skip to content

Commit 52d10ba

Browse files
sbryngelsonclaude
andcommitted
Exclude 404.html from lychee link checks
The 404 page contains root-relative links (/, /documentation/) that cannot be resolved when lychee scans local files. Lychee v0.21 reported these as warnings (pass), but v0.23 promotes them to errors (fail), breaking the docs CI on PRs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8a77d33 commit 52d10ba

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.lychee.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ accept = ["200", "429", "502"]
1616

1717
verbose = "error"
1818

19-
# Exclude sitemap file from scanning (it contains pre-publish production URLs)
20-
exclude_path = ["sitemap\\.xml"]
19+
# Exclude files from scanning
20+
exclude_path = [
21+
"sitemap\\.xml", # Contains pre-publish production URLs
22+
"404\\.html", # Root-relative links (/, /documentation/) can't resolve in local checks
23+
]
2124

2225
# Exclude URLs that fail due to external issues (broken SSL, pre-deploy only, etc.)
2326
exclude = [

0 commit comments

Comments
 (0)