-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathlychee.toml
More file actions
52 lines (43 loc) · 1.28 KB
/
lychee.toml
File metadata and controls
52 lines (43 loc) · 1.28 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
# Lychee configuration for Claude Cookbooks
# Validates links in notebooks and documentation
# Core settings
timeout = 30
max_redirects = 10
include_fragments = true
require_https = false
# Caching to speed up repeated checks
cache = true
max_cache_age = "1d"
# Retry configuration for transient failures
max_retries = 3
retry_wait_time = 2
# Skip checking code blocks (important for notebooks with example code)
skip_code_blocks = true
# Fallback extensions for local file checking
# When checking relative links, try these extensions if the exact path doesn't exist
fallback_extensions = ["ipynb", "md", "html", "py"]
# Exclude certain paths from being searched
exclude_path = [
".git/",
"__pycache__/",
".ipynb_checkpoints/",
".pyc",
".github/",
".claude/",
"scripts/"
]
# Exclude API endpoints and local development URLs from link checking
exclude = [
"https://api.anthropic.com.*",
"https://console.anthropic.com.*",
"https://www.claude.ai/",
"http://localhost.*",
"http://127.0.0.1.*"
]
# Accept 403 (forbidden) and 429 (rate limited) as valid
# These are returned by gated and rate-limited sites
accept = [403, 429]
# Headers for authenticated requests
headers = [
"User-Agent=Mozilla/5.0 (compatible; lychee/0.20.1; anthropic-cookbook)"
]