diff --git a/conf.py b/conf.py
index 64d7c68b90..aed6592c38 100644
--- a/conf.py
+++ b/conf.py
@@ -67,6 +67,7 @@
# Login page
r"https://github.com/python/buildmaster-config/issues/new.*": r"https://github.com/login.*", # noqa: E501
r"https://github.com/python/core-workflow/issues/new.*": r"https://github.com/login.*", # noqa: E501
+ r"https://github.com/orgs/python/teams.*": r"https://github.com/login.*", # noqa: E501
# Archive redirect
r"https://github.com/python/cpython/archive/main.zip": r"https://codeload.github.com/python/cpython/zip/refs/heads/main", # noqa: E501
# Blob to tree
@@ -89,6 +90,13 @@
r'\/.*',
]
+# Check the link itself, but ignore anchors that are added by JS
+# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-linkcheck_anchors_ignore_for_url
+linkcheck_anchors_ignore_for_url = [
+ # GitHub
+ r'https://github.com/.*',
+]
+
linkcheck_ignore = [
# The voters repo is private and appears as a 404
'https://github.com/python/voters',
@@ -98,17 +106,14 @@
'https://discuss.python.org/groups/staff',
'https://discuss.python.org/groups/moderators',
'https://discuss.python.org/groups/admins',
- # The crawler gets "Anchor not found" for GitHub anchors
- r'https://github.com.+?#L\d+',
- r'https://github.com/cli/cli#installation',
- r'https://github.com/github/renaming#renaming-existing-branches',
- r'https://github.com/python/bedevere/#pr-state-machine',
# "Anchor not found":
r'https://packaging.python.org/.*#',
# "-rate limited-", causing a timeout
r'https://stackoverflow.com/.*',
# Discord doesn't allow robot crawlers: "403 Client Error: Forbidden"
- 'https://support.discord.com/hc/en-us/articles/219070107-Server-Nicknames',
+ r'https://support.discord.com/hc/en-us/articles/219070107-Server-Nicknames',
+ # Patreon also gives 403 to the GHA linkcheck runner
+ r'https://www.patreon.com/.*',
]
rediraffe_redirects = {
diff --git a/core-developers/motivations.rst b/core-developers/motivations.rst
index dfe41d5aeb..b805a7c67f 100644
--- a/core-developers/motivations.rst
+++ b/core-developers/motivations.rst
@@ -261,7 +261,7 @@ participating in the CPython core development process:
.. topic:: Carol Willing (United States)
- * Noteable: ``__ (VP Engineering)
+ * Noteable (VP Engineering)
* Personal site: `Willing Consulting `_
* `Extended bio `__
* Project Jupyter (Software Council, Core Team for JupyterHub/Binder)
diff --git a/developer-workflow/communication-channels.rst b/developer-workflow/communication-channels.rst
index 60ba90339b..499ca9b964 100644
--- a/developer-workflow/communication-channels.rst
+++ b/developer-workflow/communication-channels.rst
@@ -263,7 +263,7 @@ Other core workflow tools are:
* `blurb_it`_
* `miss-islington`_
* `cla-bot`_
-* `cpython-emailer-webhook`_
+* `webhook-mailer`_
Python `Performance Benchmark`_ project is intended to be an authoritative
source of benchmarks for all Python implementations.
@@ -274,5 +274,5 @@ source of benchmarks for all Python implementations.
.. _blurb_it: https://github.com/python/blurb_it
.. _miss-islington: https://github.com/python/miss-islington
.. _cla-bot: https://github.com/ambv/cla-bot
-.. _cpython-emailer-webhook: https://github.com/berkerpeksag/cpython-emailer-webhook
+.. _webhook-mailer: https://github.com/python/webhook-mailer
.. _Performance Benchmark: https://github.com/python/pyperformance
diff --git a/developer-workflow/extension-modules.rst b/developer-workflow/extension-modules.rst
index 118fe02d23..6150bb7c40 100644
--- a/developer-workflow/extension-modules.rst
+++ b/developer-workflow/extension-modules.rst
@@ -75,7 +75,7 @@ with the following :func:`!foo.greet` function:
Instead of using the Python implementation of :func:`!foo.greet`, we want to
use its corresponding C extension implementation exposed in the :mod:`!_foo`
-module. Ideally, we want to modify :cpy-file:`!Lib/foo.py` as follows:
+module. Ideally, we want to modify ``Lib/foo.py`` as follows:
.. code-block:: python
:caption: Lib/foo.py
diff --git a/developer-workflow/lang-changes.rst b/developer-workflow/lang-changes.rst
index 70ecd679d9..52aabb15dd 100644
--- a/developer-workflow/lang-changes.rst
+++ b/developer-workflow/lang-changes.rst
@@ -45,7 +45,7 @@ The `Ideas Discourse category`_
is specifically intended for discussion of new features and language changes.
Please don't be disappointed if your idea isn't met with universal approval:
as the :pep:`long list of Withdrawn and Rejected PEPs
-<0#abandoned-withdrawn-and-rejected-peps>`
+<0#rejected-superseded-and-withdrawn-peps>`
in the :pep:`PEP Index <0>` attests,
and as befits a reasonably mature programming language,
getting significant changes into Python isn't a simple task.
diff --git a/getting-started/git-boot-camp.rst b/getting-started/git-boot-camp.rst
index f28ebefbce..15952d6bd2 100644
--- a/getting-started/git-boot-camp.rst
+++ b/getting-started/git-boot-camp.rst
@@ -341,7 +341,7 @@ example, backports to other branches), so this features is only useful if
you know for sure that a single PR is enough to address and close the issue.
.. _bedevere: https://github.com/python/bedevere
-.. _special keywords: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
+.. _special keywords: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
Updating your CPython fork
--------------------------
diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst
index 4f7478dbce..b80962e724 100644
--- a/getting-started/setup-building.rst
+++ b/getting-started/setup-building.rst
@@ -47,7 +47,7 @@ itself. Git is easily available for all common operating systems.
or the `Git project instructions `_ for step-by-step
installation directions. You may also want to consider a graphical client
such as `TortoiseGit `_ or
- `GitHub Desktop `_.
+ `GitHub Desktop `_.
- **Configure**
diff --git a/triage/issue-tracker.rst b/triage/issue-tracker.rst
index a38e8d9e01..63076e7a19 100644
--- a/triage/issue-tracker.rst
+++ b/triage/issue-tracker.rst
@@ -159,6 +159,6 @@ reason either as ``complete`` or ``not planned``.
.. _Python Discourse: https://discuss.python.org/
.. _autolinks: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls
.. _checklists: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/about-task-lists
-.. _duplicates: https://docs.github.com/en/issues/tracking-your-work-with-issues/marking-issues-or-pull-requests-as-a-duplicate
+.. _duplicates: https://docs.github.com/en/issues/tracking-your-work-with-issues/administering-issues/marking-issues-or-pull-requests-as-a-duplicate
.. _Core Development Discourse category: https://discuss.python.org/c/core-dev/23
.. _old bug tracker: https://bugs.python.org/
diff --git a/triage/labels.rst b/triage/labels.rst
index b75f757213..c2981f666d 100644
--- a/triage/labels.rst
+++ b/triage/labels.rst
@@ -147,9 +147,10 @@ to trigger specific bot behaviors.
by these labels.
See also :ref:`the status of the Python branches ` for a list
of branches and the type of PRs that can be backported to them.
-* :gh-label:`skip issue`: for trivial changes (such as typo fixes, comment
+* :gh-label:`skip issue `: for trivial changes (such as
+ typo fixes, comment
changes, and section rephrases) that don't require a corresponding issue.
-* :gh-label:`skip news`: for PRs that don't need a NEWS entry.
+* :gh-label:`skip news `: for PRs that don't need a NEWS entry.
The :ref:`news-entry` section covers in details in which cases the NEWS entry
can be skipped.
* :gh-label:`test-with-buildbots`: used to test the latest commit with