-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathlychee.toml
More file actions
104 lines (86 loc) · 2.9 KB
/
Copy pathlychee.toml
File metadata and controls
104 lines (86 loc) · 2.9 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Lychee Link Checker Configuration
# https://github.com/lycheeverse/lychee
# Maximum number of concurrent network requests
max_concurrency = 6
# Request timeout in seconds
timeout = 30
# Accept these HTTP status codes as valid
accept = [200, 201, 204, 301, 302, 307, 308, 403, 429, 503]
# Exclude URL patterns (regex)
exclude = [
# Local development URLs
'localhost',
'http://127\.0\.0\.1',
'https://127\.0\.0\.1',
'http://0\.0\.0\.0',
'host\.docker\.internal',
'http://localhost:12000/',
'http://localhost:10020/',
# Well-known endpoints and example domains
'\.well-known',
'example\.com',
# Self-referential docs URLs (checked via --remap in PR workflow)
'https://a2a-protocol\.org/.*',
# Example/placeholder URLs used in documentation
'token\.actions\.githubusercontent\.com',
'github\.com/example/',
# Sites that timeout or block GitHub Actions IPs
'w3\.org',
'gnu\.org',
'helm\.sh',
'https://medium.com/',
'https://x.com/',
'https://goo.gle/',
'https://www\.linkedin\.com/',
'https://www\.youtube\.com/',
'https://img\.shields\.io/',
'https://shields\.io/',
'https://badges\.github\.com/',
'https://www\.mckinsey\.com/',
'https://www\.adobe\.com/',
'https://www\.servicenow\.com/',
'https://www\.nttdata\.com/',
'https://hellotars\.com/',
'https://www\.uvicorn\.org/',
'https://ai\.pydantic\.dev/',
'https://strandsagents\.com/',
'https://codimite\.ai/',
'github\.com/open-telemetry/opentelemetry-',
# GitHub pages that redirect or require auth in CI
'https://github\.com/settings/developers',
'https://github\.com/login/device',
'https://github\.com/.*/edit/',
# Google Fonts (injected by mkdocs-material; root URL returns 404 to HEAD/GET)
'fonts\.googleapis\.com',
'fonts\.gstatic\.com',
]
# Exclude paths (regex patterns relative to the input)
# Skip MkDocs awesome-pages .index files/dirs that lychee cannot parse
# Skip 404.html: root-relative links need a base URL lychee cannot resolve for local files
exclude_path = [
".github/actions/spelling",
"CHANGELOG.md",
"docs/partners.md",
"docs/robots.txt",
"docs/llms.txt",
"docs/spec/a2a.json",
"docs/spec-proto.md",
"docs/sdk/python.md",
'\.index(/|$)',
'(^|/)404\.html$',
'site/sdk/python/_build/',
]
# Enable link caching for faster subsequent runs
cache = true
# Maximum number of retries per link (helps with transient HTTP/2 errors to GitHub)
max_retries = 3
# Wait between retries to reduce rate-limit false positives (~90s total per URL)
retry_wait_time = 30
# HTTP method to use for checking links
method = "get"
# Exclude links from code blocks, preformatted text, and other verbatim content
include_verbatim = false
# User agent string
user_agent = "lychee/a2a-protocol"
# Skip missing input files (useful when checking changed paths in PRs)
skip_missing = true