From 09d993ad4de12f3d11ddf25ff4b4db54714f1969 Mon Sep 17 00:00:00 2001 From: Ian Stapleton Cordasco Date: Sun, 11 Feb 2024 07:35:51 -0600 Subject: [PATCH] Update linkcheck_ignore setting for docs The project management pages on PyPI fail the check today Also fix two of the links that are currently broken on the packaging guide. --- docs/changelog.rst | 4 ++-- docs/conf.py | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index e93dff5d..4af8768f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,8 +2,8 @@ Changelog ========= -This project follows the `semantic versioning `_ -and `pre-release versioning `_ +This project follows the `semantic versioning `_ +and `pre-release versioning `_ schemes recommended by the Python Packaging Authority. .. Do *NOT* add changelog entries here! diff --git a/docs/conf.py b/docs/conf.py index 81bcb73a..95791532 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -265,15 +265,19 @@ # How to display URL addresses: 'footnote', 'no', or 'inline'. # texinfo_show_urls = 'footnote' +# See https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-linkcheck_ignore linkcheck_ignore = [ - "http://127.0.0.1*", + r"https?://127\.0\.0\.1.*", # Avoid errors due to GitHub rate limit # https://github.com/sphinx-doc/sphinx/issues/7388 - "https://github.com/pypa/twine/issues/*", + r"https://github\.com/pypa/twine/issues/.*", # Avoid errors from channels interpreted as anchors - "https://web.libera.chat/#", + r"https://web\.libera\.chat/#", # Avoid error from InvalidPyPIUploadURL docstring - "https://upload.pypi.org/legacy", + r"https://upload\.pypi\.org/legacy/?", + # Avoid errors from 403/Login Redirects + r"https://(test\.)?pypi\.org/manage/project/twine/collaboration/?", + r"https://pypi\.org/manage/project/twine/collaboration/?", ] intersphinx_mapping = {