From 5ed40cc6f8ccd09544e65c1a85d2181f686b8438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= Date: Fri, 10 Jan 2025 09:28:46 +0100 Subject: [PATCH] Ignore cpu docs page during the `linkcheck` (#3458) Seems that the site is too alergic to github as it repeatedly refuses to serve the pages when requested from there with this: 403 Client Error: Forbidden for url: https://www.cpu-world.com/ Let's just ignore it. --- docs/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index cc84372957..ccfd600e72 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -312,7 +312,10 @@ def _load_theme( # Github "source code line" anchors are apparently too dynamic for linkcheck # to detect correctly. The link exists, a browser can open it, but linkcheck # reports a broken link. - r'https://github.com/packit/packit/blob/main/packit/utils/logging.py#L10' + r'https://github.com/packit/packit/blob/main/packit/utils/logging.py#L10', + + # The site repeatedly refuses to serve pages to github + r'https://www.cpu-world.com.*', ]