-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathlychee.toml
More file actions
33 lines (29 loc) · 1.06 KB
/
lychee.toml
File metadata and controls
33 lines (29 loc) · 1.06 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
# Shared lychee config for CI and local script (build/check-external-links.ps1).
cache = true
scheme = ["http", "https"]
require_https = true
include_fragments = true
retry_wait_time = 5
root_dir = "."
host_concurrency = 5
host_request_interval = "250ms"
exclude_loopback = true
# Browser-like UA so sites that block bots (e.g. mysql.com) respond normally.
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"
exclude = [
# Placeholder hostnames in code samples.
"fortuneservice",
"\\.internal",
"(?i)consul-register-example",
# mysql.com returns 403 to automated requests despite browser-like UA.
"mysql\\.com",
# False positives: these sites generate anchor IDs via JS, so fragments
# aren't in the raw HTML. Track https://github.com/lycheeverse/lychee/issues/1729
"https://learn\\.microsoft\\.com/.*#remarks",
"https://github\\.com/.*#",
]
exclude_path = [
# Vendored sources from API browser build.
"build.sources",
"build.docfx-net10-binaries",
]