|
| 1 | +############################# Display ############################# |
| 2 | + |
| 3 | +# Verbose program output |
| 4 | +verbose = "warn" |
| 5 | + |
| 6 | +# Output format |
| 7 | +format = "markdown" |
| 8 | + |
| 9 | +# Path to report output file |
| 10 | +output = "lychee-report.md" |
| 11 | + |
| 12 | +# Don't show interactive progress bar while checking links. |
| 13 | +no_progress = false |
| 14 | + |
| 15 | +############################# Cache ############################### |
| 16 | + |
| 17 | +# Enable link caching to avoid re-checking identical links across runs. |
| 18 | +cache = true |
| 19 | + |
| 20 | +# Discard cached results older than this duration. |
| 21 | +max_cache_age = "1d" |
| 22 | + |
| 23 | +############################# Runtime ############################# |
| 24 | + |
| 25 | +# Maximum number of allowed redirects. |
| 26 | +max_redirects = 10 |
| 27 | + |
| 28 | +# Maximum number of allowed retries before a link is declared dead. |
| 29 | +max_retries = 3 |
| 30 | + |
| 31 | +# Minimum wait time in seconds between retries of failed requests. |
| 32 | +retry_wait_time = 2 |
| 33 | + |
| 34 | +# Maximum number of concurrent link checks. |
| 35 | +max_concurrency = 16 |
| 36 | + |
| 37 | +############################# Requests ############################ |
| 38 | + |
| 39 | +# Website timeout from connect to response finished (seconds). |
| 40 | +timeout = 20 |
| 41 | + |
| 42 | +# Comma-separated list of accepted status codes for valid links. |
| 43 | +# 429 = Too Many Requests (rate-limited, treat as valid). |
| 44 | +accept = ["200", "429"] |
| 45 | + |
| 46 | +# Proceed for server connections considered insecure (invalid TLS). |
| 47 | +insecure = false |
| 48 | + |
| 49 | +# Only test links with these schemes. |
| 50 | +scheme = ["https", "http"] |
| 51 | + |
| 52 | +# Request method |
| 53 | +method = "get" |
| 54 | + |
| 55 | +# Enable the checking of anchor fragments in links. |
| 56 | +include_fragments = true |
| 57 | + |
| 58 | +# Do NOT check links inside <code> and <pre> blocks. |
| 59 | +include_verbatim = false |
| 60 | + |
| 61 | +############################# Exclusions ########################## |
| 62 | + |
| 63 | +# Skip missing input files instead of erroring. |
| 64 | +skip_missing = false |
| 65 | + |
| 66 | +# Exclude URLs from checking (treated as regular expressions). |
| 67 | +exclude = [ |
| 68 | + # LinkedIn blocks automated requests |
| 69 | + "^https?://(www\\.)?linkedin\\.com", |
| 70 | + # Localhost and loopback addresses |
| 71 | + "^https?://localhost", |
| 72 | + "^https?://127\\.0\\.0\\.1", |
| 73 | + # Placeholder/example domains |
| 74 | + "^https?://example\\.com", |
| 75 | + # GitHub login/auth pages often rate-limit or redirect bots |
| 76 | + "^https?://github\\.com/login", |
| 77 | + # Internal documentation anchor-only references (handled by MkDocs build) |
| 78 | + "^#", |
| 79 | +] |
| 80 | + |
| 81 | +# Exclude these paths from being checked. |
| 82 | +exclude_path = [ |
| 83 | + # Generated search index and assets have no meaningful links |
| 84 | + "site/search", |
| 85 | + "site/assets", |
| 86 | + # 404 page |
| 87 | + "site/404.html", |
| 88 | + # Sitemap and robots files |
| 89 | + "site/sitemap.xml", |
| 90 | + "site/robots.txt", |
| 91 | +] |
| 92 | + |
| 93 | +# Check the specified file extensions |
| 94 | +extensions = ["html"] |
| 95 | + |
| 96 | +# Exclude all private IPs from checking. |
| 97 | +exclude_all_private = true |
| 98 | + |
| 99 | +############################# Local files ######################### |
| 100 | + |
| 101 | +# Root path used to resolve absolute local links (e.g. /en/latest/page/). |
| 102 | +# Must match the directory passed as input to lychee. |
| 103 | +root_dir = "site" |
| 104 | + |
| 105 | +# Base URL for resolving relative links in HTML files. |
| 106 | +base_url = "https://doc.ibexa.co/en/latest/" |
0 commit comments