diff --git a/docs/conf.py b/docs/conf.py index 99c52abb..143e1e96 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -162,10 +162,21 @@ ] linkcheck_ignore = [ - r"https://www\.gnu\.org/.*", # Broken in GitHub actions - r"https://www\.freedesktop\.org/.*", # Uses Anubis so get "418 Client Error: I'm a teapot for url: ..." + r"https://www\.gnu\.org/.*", # Broken in GitHub actions + r"https://www\.freedesktop\.org/.*", # Uses Anubis so get "418 Client Error: I'm a teapot for url: ..." + r"https://gitlab\.gnome\.org/.*", # 406 probably due to Anubis + r"https?://launchpad\.net/.*", # Timeout in GitHub actions ] +linkcheck_request_headers = { + "*": { + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0", + } +} + +linkcheck_retries = 2 +linkcheck_timeout = 10 + # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples