|
| 1 | +# .github/lychee.toml |
| 2 | + |
| 3 | +############################# Display ############################# |
| 4 | +# Verbose program output |
| 5 | +# Accepts log level: "error", "warn", "info", "debug", "trace" |
| 6 | +verbose = "info" |
| 7 | + |
| 8 | +# Don't show interactive progress bar while checking links. |
| 9 | +no_progress = true |
| 10 | + |
| 11 | +############################# Cache ############################### |
| 12 | +# Enable link caching. This can be helpful to avoid checking the same links on |
| 13 | +# multiple runs. |
| 14 | +cache = false |
| 15 | + |
| 16 | +############################# Runtime ############################# |
| 17 | +# Maximum number of concurrent link checks. |
| 18 | +max_concurrency = 12 |
| 19 | + |
| 20 | +# Maximum number of allowed redirects. |
| 21 | +max_redirects = 5 |
| 22 | + |
| 23 | +# Maximum number of allowed retries before a link is declared dead. |
| 24 | +max_retries = 1 |
| 25 | + |
| 26 | +############################# Requests ############################ |
| 27 | +# Website timeout from connect to response finished. |
| 28 | +timeout = 10 |
| 29 | + |
| 30 | +# Minimum wait time in seconds between retries of failed requests. |
| 31 | +retry_wait_time = 1 |
| 32 | + |
| 33 | +# Accept more status codes (follow redirects automatically) |
| 34 | +accept = ["200..=204", "301..=308", "429"] |
| 35 | + |
| 36 | +# Avoid false fragment errors |
| 37 | +include_fragments = false |
| 38 | + |
| 39 | +# Only test links with the given schemes (e.g. https). |
| 40 | +# Omit to check links with any other scheme. |
| 41 | +# At the moment, we support http, https, file, and mailto. |
| 42 | +scheme = ["https"] |
| 43 | + |
| 44 | +# When links are available using HTTPS, treat HTTP links as errors. |
| 45 | +require_https = false |
| 46 | + |
| 47 | +# Fallback extensions to apply when a URL does not specify one. |
| 48 | +# This is common in documentation tools that cross-reference files without extensions. |
| 49 | +fallback_extensions = ["md", "html"] |
| 50 | + |
| 51 | +############################# Exclusions ########################## |
| 52 | +# Exclude URLs and mail addresses from checking (supports regex). |
| 53 | +exclude = [ |
| 54 | + '^mailto:', |
| 55 | + '^https?://localhost', |
| 56 | + '^https?://127\\.0\\.0\\.1', |
| 57 | + '^https://www\.linkedin\.com', |
| 58 | + '^https?://issues\.umbraco\.org/', |
| 59 | + '^https?://web\\.archive\\.org/web/' |
| 60 | +] |
| 61 | + |
| 62 | +# Exclude these filesystem paths from getting checked. |
| 63 | +exclude_path = [ |
| 64 | + '(^|/)node_modules/', |
| 65 | + '(^|/)dist/', |
| 66 | + '(^|/)bin/', |
| 67 | + '\\.txt$', # skip .txt extensions |
| 68 | + '(^|/)test/' # skip directories named "test" |
| 69 | +] |
| 70 | + |
| 71 | +# URLs to check (supports regex). Has preference over all excludes. |
| 72 | +include = ['gist\.github\.com.*'] |
| 73 | + |
| 74 | +# Skip checking mail addresses |
| 75 | +include_mail = true |
| 76 | + |
| 77 | +############################# Content Checks ###################### |
| 78 | +# Mark pages as broken if the body contains "page not found" or "404" |
| 79 | +[content] |
| 80 | +deny = ["(?i)page not found", "(?i)404"] |
0 commit comments