-
Notifications
You must be signed in to change notification settings - Fork 473
/
Copy pathlychee.toml
57 lines (50 loc) · 1.8 KB
/
lychee.toml
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
############################# Display #############################
# Use error level to only show failed requests
verbose = "error"
# Don't show interactive progress bar while checking links.
no_progress = true
# Don't show the source file of links
no_show_source = false
############################# Requests ############################
# URL remapping rules.
remap = [
# Handle resource files without adding .mdx extension
"file:///pages/(.*?)\\.(pdf|png|jpg|jpeg|gif|svg|json)$ file:///./pages/$1.$2",
# Handle URL-encoded anchors (%23) for mdx files
"file:///([^%\\.]+)%23(.*) file:///./pages/$1.mdx#$2",
# Handle regular anchors (#) for mdx files
"file:///([^#\\.]+)#(.*) file:///./pages/$1.mdx#$2",
# Handle regular mdx files without anchors
"file:///([^#%\\.]+)$ file:///./pages/$1.mdx",
]
# Base URL or website root directory to check relative URLs
base = "."
############################# Exclusions ##########################
# Exclude loopback IP address range and localhost from checking.
exclude_loopback = true
# Exclude all mail addresses from checking.
exclude_mail = true
# Exclude RPC URLs from checking
exclude = [
'https://mainnet.optimism.io',
'https://mainnet-sequencer.optimism.io',
'https://sepolia.optimism.io',
'https://sepolia-sequencer.optimism.io',
'https://archive.org',
'https://web.archive.org',
'https://mainnet.base.org',
'https://sepolia.base.org',
'https://optimism.easscan.org',
'\.(pdf|zip|png|jpg|jpeg|gif|svg|json)$'
]
# Accept all status codes except 404
accept = [
"100..=399",
"401..=403",
"405..=999"
]
# Use compact format for cleaner output
format = "Compact"
############################# Anchors #############################
# Enable checking for anchors in local files
check_anchors = true