Repository navigation
Expand file tree
/
Copy pathlychee.toml
More file actions
72 lines (64 loc) · 2.55 KB
/
Copy pathlychee.toml
File metadata and controls
72 lines (64 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# lychee configuration for the Tempo docs site.
# Validates external links in markdown, MDX, and config sources.
# See https://lychee.cli.rs/usage/config/
# Network settings
max_redirects = 10
max_concurrency = 16
timeout = 20
retry_wait_time = 2
# Some hosts (Twitter, LinkedIn, Cloudflare-protected sites) reject the default UA.
user_agent = "Mozilla/5.0 (compatible; tempo-docs-link-checker/1.0; +https://tempo.xyz/developers)"
# Auth-walled or rate-limited statuses are still "reachable".
accept = ["200..=299", "401", "403", "429"]
exclude_path = [
"node_modules",
"dist",
".vocs",
".vercel",
"playwright-report",
"test-results",
"patches",
]
exclude = [
# Local / placeholder hosts.
"^https?://localhost",
"^https?://127\\.0\\.0\\.1",
"^https?://0\\.0\\.0\\.0",
"^https?://\\[::1\\]",
"^https?://([a-z0-9-]+\\.)*example\\.(com|org|net)",
# SVG xmlns reference, not a real link.
"^http://www\\.w3\\.org/2000/svg$",
# POST-only AI search endpoint referenced in vocs.config.ts.
"^https://tempo\\.xyz/developers/api/search$",
# MPP service roots expose paid API routes rather than browser landing pages.
"^https://[a-z0-9-]+\\.mpp\\.paywithlocus\\.com/?$",
"^https://api\\.auto\\.exchange/?$",
# Verified app pages that reject automated link-check requests.
"^https://dashboard\\.pimlico\\.io/?$",
"^https://docs\\.elliptic\\.co/?$",
"^https://hub\\.conduit\\.xyz/tempo-testnet/?$",
# Temporary upstream error on the published TIP page.
"^https://tips\\.sh/1066/?$",
# Temporary Auto.exchange outage: API root times out (2026-09-24).
"^https://api\\.auto\\.exchange/?$",
]
# GitHub answers bursts of github.com/<owner>/<repo>/blob/... page requests from
# CI runners with 503s, which failed PRs on links that exist. Check the file
# itself on GitHub's raw CDN instead: it still returns 404 for a missing file or
# ref, and doesn't throttle. Line anchors (#L10) aren't checked either way.
# Only paths ending in a file name with an extension are remapped: raw 404s on
# folders, which github.com redirects from blob/ to tree/.
remap = [
"^https://github\\.com/([^/]+)/([^/]+)/blob/([^#?]+/[^/#?]*\\.[^/#?]+)(?:[?#].*)?$ https://raw.githubusercontent.com/$1/$2/$3",
]
# Reuse cached results across runs.
cache = true
max_cache_age = "1d"
# Don't cache server errors: a cached 503 kept failing reruns for a day.
cache_exclude_status = "500.."
no_progress = true
# Pace the remaining github.com requests (repos, trees, releases) so a full run
# doesn't trip GitHub's rate limiting.
[hosts."github.com"]
concurrency = 4
request_interval = "250ms"