Repository navigation
Expand file tree
/
Copy pathlychee.toml
More file actions
43 lines (36 loc) · 1.5 KB
/
Copy pathlychee.toml
File metadata and controls
43 lines (36 loc) · 1.5 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
# Lychee configuration file
# Documentation: https://github.com/lycheeverse/lychee#configuration-file
# Maximum number of retries per link
max_retries = 3
# Maximum number of concurrent requests
max_concurrency = 10
# User agent string
user_agent = "Mozilla/5.0 (compatible; Lychee/0.15; +https://github.com/lycheeverse/lychee)"
# Accept these HTTP status codes as valid
accept = [200, 201, 202, 203, 204, 206, 301, 302, 303, 307, 308, 429]
# Timeout per request (in seconds)
timeout = 20
# Exclude template URLs that users should replace
exclude = [
"https://github.com/YOUR-USERNAME/.*",
"https://YOUR-USERNAME.github.io/.*",
"https://your-username.github.io/.*",
"http://localhost.*",
"https://localhost.*",
"http://127.0.0.1.*",
"https://127.0.0.1.*",
# quarto.org is a trusted site but may be unreachable from CI runners
"https://quarto.org/.*",
# StackExchange and etymonline sites answer automated clients such as CI
# link checkers with 403 Forbidden; the links work in a browser.
"https://math.stackexchange.com/.*",
"https://stats.stackexchange.com/.*",
"https://www.etymonline.com/.*",
# Stanford course pages time out from CI runners; the links work in a browser.
"https?://theory.stanford.edu/.*",
"https?://infolab.stanford.edu/.*",
]
# `cds` is a symlink to the repository root, so include paths read
# `cds/...` both here and in a host site that keeps a copy at its root.
# Without this exclusion lychee follows it recursively (cds/cds/cds/...).
exclude_path = ["^(\\./)?cds/"]