From 183c056950833affaaa33f9abb5794ef661e39c2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Oct 2025 12:38:18 +0000 Subject: [PATCH 1/2] fix lychee: accept 429, 403 fix lychee: accept 429, 403 test --- .lycheeignore | 4 ---- lychee.toml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) delete mode 100644 .lycheeignore create mode 100644 lychee.toml diff --git a/.lycheeignore b/.lycheeignore deleted file mode 100644 index 98b26f6e886..00000000000 --- a/.lycheeignore +++ /dev/null @@ -1,4 +0,0 @@ -zhuanlan.zhihu.com/* -https://demo.doctrp.top/ -http://127.0.0.1:8001/ -http://localhost:9003 diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 00000000000..7ab40b1244e --- /dev/null +++ b/lychee.toml @@ -0,0 +1,25 @@ +# For all options, see +# Accept 200 (OK) and 403 (Forbidden) responses as valid +accept = [ + "200", + "403", + "429" +] + + +# Exclude links +exclude = [ + "zhuanlan.zhihu.com", + "demo.doctrp.top", + "127.0.0.1", + "localhost" +] + +# Don't check any links to private addresses +exclude_all_private = true + +# Avoid rate limits by limiting concurrency of checks +max_concurrency = 10 + +# Redirected links can eventually become broken links +max_redirects = 0 From e72cc20cc3a90493bd990486931dd382fb32f251 Mon Sep 17 00:00:00 2001 From: Echo-Nie <157974576+Echo-Nie@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:35:03 +0800 Subject: [PATCH 2/2] Update lychee.toml --- lychee.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/lychee.toml b/lychee.toml index 7ab40b1244e..c597f3c24a7 100644 --- a/lychee.toml +++ b/lychee.toml @@ -6,7 +6,6 @@ accept = [ "429" ] - # Exclude links exclude = [ "zhuanlan.zhihu.com",