-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathlychee.toml
More file actions
58 lines (44 loc) Β· 1.38 KB
/
lychee.toml
File metadata and controls
58 lines (44 loc) Β· 1.38 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
# Lychee Link Checker Configuration
# https://lychee.cli.rs/#/usage/config
# Maximum number of concurrent network requests
max_concurrency = 10
# Accept these HTTP status codes as valid
# 200: OK
# 204: No Content
# 429: Too Many Requests (rate limited but valid)
accept = [200, 204, 429]
# Timeout for each request (seconds)
timeout = 20
# Number of retries for failed requests
max_retries = 3
# Wait time between retries (seconds)
retry_wait_time = 10
# Check links in these file types
include = ["**/*.md", "**/*.html"]
# Exclude checking links that match these patterns
exclude = [
# Development URLs - only work when server is running locally
"http://localhost:*",
"https://localhost:*",
# npm registry - blocks automated checkers but works in browsers
"https://www.npmjs.com/package/*",
"https://www.npmjs.com/settings/*",
# YouTube nocookie - root returns 404, but embed URLs work
"https://www.youtube-nocookie.com/$",
# Documentation templates with placeholders
".*\\[username\\].*",
".*\\[your-.*",
]
# Skip links in these paths
exclude_path = [
"node_modules",
"dist",
"build",
".git",
]
# User agent for requests
user_agent = "Mozilla/5.0 (compatible; lychee/link-checker)"
# Don't fail on warnings, only on errors
require_https = false
# Include fragments in link checking (anchors like #section)
include_fragments = true