-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathlychee.toml
More file actions
95 lines (73 loc) · 2.69 KB
/
lychee.toml
File metadata and controls
95 lines (73 loc) · 2.69 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Lychee Link Checker Configuration
# https://github.com/lycheeverse/lychee
# Maximum number of concurrent network requests
max_concurrency = 10
# Request timeout in seconds
timeout = 10
# Accept these HTTP status codes as valid
accept = [200, 201, 204, 403, 429, 503]
# Exclude URL patterns (regex)
exclude = [
# Local development URLs
'localhost',
'http://127\.0\.0\.1',
'https://127\.0\.0\.1',
'http://0\.0\.0\.0',
'host\.docker\.internal',
# Well-known endpoints and example domains
'\.well-known',
'api\.node',
'https://api\.NODE',
# Self-referential docs URLs (may not exist yet)
'https://docs\.agntcy\.org/.*',
# GitHub raw URLs that are generated but may not exist
'https://github\.com/agntcy/docs/raw/main/docs/.*',
# Example/placeholder URLs used in documentation
'example\.com',
'your-username',
'company\.com',
'remote-slim',
'otel-collector',
'slim\.slim',
'schema\.oasf\.agntcy\.org',
'schema\.oasf\.outshift\.com',
'api\.agent-identity\.outshift\.com',
'token\.actions\.githubusercontent\.com',
'github\.com/example/',
'spiffe\.github\.io/helm-charts-hardened',
# Sites that timeout from GitHub Actions IPs
'w3\.org',
'gnu\.org',
'helm\.sh',
'kind\.sigs\.k8s\.io',
# GitHub Actions Artifacts (may expire or require login)
'https://github\.com/agntcy/dir/actions/runs/.*',
# GitHub pages that redirect or require auth in CI
'https://github\.com/settings/developers',
'https://github\.com/login/device',
'https://github\.com/.*/edit/',
# MCP Registry (API docs; hash routes or bot blocking in CI)
'https://registry\.modelcontextprotocol\.io',
# Sigstore endpoints (may rate-limit or vary in CI)
'fulcio\.sigstore\.dev',
'rekor\.sigstore\.dev',
# Video file path (structure differs in build vs source)
'.*assets/dir-gui\.mov',
]
# Exclude paths (regex patterns relative to the input)
# Skip MkDocs awesome-pages .index files/dirs that lychee cannot parse
# Skip 404.html: root-relative links need a base URL lychee cannot resolve for local files
exclude_path = ['overrides', '\\.index(/|$)', '(^|/)404\\.html$']
# Enable link caching for faster subsequent runs
cache = true
# Only show errors and summary (not every checked link)
# Set to "info" or "debug" for more verbose output
# Omit or set to false for minimal output
# Maximum number of retries per link (helps with transient HTTP/2 errors to GitHub)
max_retries = 3
# HTTP method to use for checking links
method = "get"
# Exclude links from code blocks, preformatted text, and other verbatim content
include_verbatim = false
# User agent string
user_agent = "lychee/agntcy-docs"