From 9c53ca1a9afdeefc149c18e1d0fef9a75e3bf188 Mon Sep 17 00:00:00 2001 From: Richard Alves <54530477+richarddalves@users.noreply.github.com> Date: Mon, 10 Nov 2025 10:36:40 -0300 Subject: [PATCH] [FIX] config(link_checker): ignore external anchors and downgrade external link errors to warnings - Added skip_anchor_prefixes for http/https to skip external anchor validation - Set external_level = "warn" to prevent build failures from external link issues - Kept full validation for internal links --- blog/config.toml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/blog/config.toml b/blog/config.toml index 43103c3b..1f6f1f22 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -21,20 +21,23 @@ smart_punctuation = true [link_checker] skip_prefixes = [ - "https://crates.io/crates", # see https://github.com/rust-lang/crates.io/issues/788 - "https://www.amd.com/system/files/TechDocs/", # seems to have problems with PDFs - "https://developer.apple.com/library/archive/qa/qa1118/_index.html", # results in a 401 (I don't know why) - "https://github.com", # rate limiting often leads to "Error 429 Too Many Requests" - "https://www.linkedin.com/", # seems to send invalid HTTP status codes + "https://crates.io/crates", # crates.io API sometimes unstable + "https://www.amd.com/system/files/TechDocs/", # issues with PDFs + "https://developer.apple.com/library/archive/qa/qa1118/_index.html", # 401 errors + "https://github.com", # rate limiting (429) + "https://www.linkedin.com/", # invalid status codes ] + +# Ignore all anchor checks on any external site skip_anchor_prefixes = [ - "https://github.com/", # see https://github.com/getzola/zola/issues/805 - "https://docs.rs/x86_64/0.1.2/src/", # source code highlight - "https://doc.rust-jp.rs/book-ja/", # seems like Zola has problems with Japanese anchor names - "https://doc.rust-jp.rs/edition-guide/rust-2018", # seems like Zola has problems with Japanese anchor names - "https://doc.rust-jp.rs/rust-nomicon-ja/", # seems like Zola has problems with Japanese anchor names + "http://", + "https://", ] +# reat external link issues as warnings instead of build errors +external_level = "warn" + + [extra] subtitle = "Philipp Oppermann's blog" author = { name = "Philipp Oppermann" }