From f9cf89fab43679c9d5f6da8297edfe7991a63c83 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Fri, 13 Dec 2024 09:07:05 +0100 Subject: [PATCH] Try to set a User-Agent to access opensource.org --- conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf.py b/conf.py index 75d1e87..f7c0967 100644 --- a/conf.py +++ b/conf.py @@ -43,6 +43,12 @@ r"https://twiki.cern.ch/twiki/bin/view", # TWikis might need login ] +linkcheck_request_headers = { + "https://opensource.org": { + "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" + } +} + myst_heading_anchors = 3 myst_enable_extensions = ["colon_fence"]