-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlychee.toml
More file actions
71 lines (55 loc) · 1.82 KB
/
lychee.toml
File metadata and controls
71 lines (55 loc) · 1.82 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
# Lychee Link Checker Configuration
# This configuration enables checking of internal Fumadocs links by remapping
# Next.js routes to actual file system paths
# Maximum number of concurrent requests
max_concurrency = 10
# Accept status codes (2xx = success)
accept = [200, 204, 206, 301, 302, 307, 308, 429]
# Timeout for requests (in seconds)
timeout = 30
# Retry failed requests
max_retries = 2
# Follow redirects
follow_redirects = true
# Check anchors/fragments in links
include_fragments = false
# Verbose output
# Accepts log level: "error", "warn", "info", "debug", "trace"
verbose = "info"
# Remap internal documentation links to actual file paths
# Maps /docs/* routes to content/docs/*.mdx or content/docs/*.md files
# Lychee remap uses simple "pattern" = "replacement" syntax
remap = [
# Primary remapping for .mdx files
"^/docs/(.*)$ content/docs/$1.mdx",
# Fallback for .md files
"^/docs/(.*)$ content/docs/$1.md"
]
# Exclude file paths matching these regex patterns
exclude_path = [
"\\.lycheeignore$",
"(^|.*/)meta\\.json$",
"(^|.*/)meta\\.cn\\.json$"
]
# Additional exclude patterns for internal paths
exclude = [
# Local development
"http://localhost*",
"http://127.0.0.1*",
# Example/placeholder links
"https://example.com*",
"http://example.com*",
# Social media (prevents anti-bot false positives)
"https://twitter.com*",
"https://x.com*",
# Email links
"mailto:*",
# Fumadocs relative links (handled by framework at runtime)
# These are links like ./agent that resolve to .mdx files
"file://**/content/docs/**"
]
# Cache results to speed up subsequent runs
cache = true
# Specify schemes to check (include file:// for local files)
# Leaving this unset allows all schemes including file://
# scheme = ["https", "http", "file"]