From 83025998c744abaa4f93f52893436de58222d6bb Mon Sep 17 00:00:00 2001 From: Thomas Zahner Date: Fri, 11 Jul 2025 19:08:06 +0200 Subject: [PATCH] Add examples --- lychee.example.toml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lychee.example.toml b/lychee.example.toml index 11ea162..1d495a0 100644 --- a/lychee.example.toml +++ b/lychee.example.toml @@ -105,10 +105,19 @@ include_verbatim = false glob_ignore_case = false # Exclude URLs and mail addresses from checking. The values are treated as regular expressions -exclude = ['^https://www\.linkedin\.com', '^https://web\.archive\.org/web/'] +exclude = [ + '^https://example\.com/home$', # specific URL + '^https?://example\.com', # match both HTTP and HTTPS + '^https://(www\.)?linkedin\.com', # optional subdomains + '^https://(.*\.)?github(usercontent)?\.(com|io)', # exclude common GitHub URLs +] # Exclude paths from getting checked. The values are treated as regular expressions -exclude_path = ["file/path/to/Ignore", "./other/file/path/to/Ignore"] +exclude_path = [ + "\\.txt$", # skip .txt extensions + "(^|/)test/", # skip directories named "test" + "[aeiouAEIOU]", # exclude paths containing vowels +] # URLs to check (supports regex). Has preference over all excludes. include = ['gist\.github\.com.*']