From 684fb1dfce04f877dd91efc0319f308ae158b5cb Mon Sep 17 00:00:00 2001 From: Songqian Li Date: Fri, 8 Aug 2025 11:34:03 +0800 Subject: [PATCH] ci: Improve link checker conditions Link checker excludes checks on local links and links with variables. Signed-off-by: Songqian Li --- .lychee.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.lychee.toml b/.lychee.toml index 9eb8f9fdf..875a86182 100644 --- a/.lychee.toml +++ b/.lychee.toml @@ -14,8 +14,16 @@ exclude = [ # OSDev has added bot protection and accesses my result in 403 Forbidden. '^https://wiki.osdev.org', + # Exclude all pages with $ in the URL since $XXX is a variable + "\\$.*", + # Exclude local files + "file://.*", ] +# Exclude loopback addresses +exclude_loopback = true + + max_retries = 3 retry_wait_time = 5