From 94d8b5a248eb220196b3fd7f47c1a25bac816db4 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 14 Oct 2026 08:37:36 +0200 Subject: [PATCH] Do not self-host shields.io badges in the documentation The privacy plugin downloads img.shields.io badges at build time; when shields.io times out, mkdocs build --strict aborts and the ci_test_build_documentation job fails until it is restarted. Exclude the host like repology.org; the version badges stay current this way. Signed-off-by: Niels Lohmann --- docs/mkdocs/mkdocs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/mkdocs/mkdocs.yml b/docs/mkdocs/mkdocs.yml index 74b6c4d46..ead3228e5 100644 --- a/docs/mkdocs/mkdocs.yml +++ b/docs/mkdocs/mkdocs.yml @@ -453,8 +453,12 @@ plugins: # package badges (the fetch fails, then reading the missing cache entry # raises FileNotFoundError). Readers' browsers are served normally, so # leave these badges as external references instead of self-hosting them. + # The same goes for img.shields.io, whose version badges time out from + # time to time (strict mode turns the failed download into an error) and + # would go stale between builds if they were self-hosted anyway. assets_exclude: - repology.org/* + - img.shields.io/* - llmstxt: markdown_description: > JSON for Modern C++ is a C++11 header-only library implementing a JSON