Skip to content

Commit 42c223e

Browse files
authored
Fix linkcheck warnings (#1256)
1 parent 008be35 commit 42c223e

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
r"https://docs.python.org/[a-z-]+/": r"https://docs.python.org/[a-z-]+/3/",
6464
# Personal /my/ links redirect to login page
6565
r"https://discuss.python.org/my/.*": r"https://discuss.python.org/login-preferences", # noqa: E501
66+
# Category number URL to full slug
67+
r"https://discuss.python.org/c/\d+": r"https://discuss.python.org/c/.*",
6668
# Login page
69+
r"https://github.com/python/buildmaster-config/issues/new.*": r"https://github.com/login.*", # noqa: E501
6770
r"https://github.com/python/core-workflow/issues/new.*": r"https://github.com/login.*", # noqa: E501
6871
# Archive redirect
6972
r"https://github.com/python/cpython/archive/main.zip": r"https://codeload.github.com/python/cpython/zip/refs/heads/main", # noqa: E501
@@ -72,10 +75,11 @@
7275
# HackMD shortcuts
7376
r"https://hackmd.io/s/.*": r"https://hackmd.io/@.*",
7477
# Read the Docs
78+
r"https://python-docs-tr.readthedocs.io/": r"https://python-docs-tr.readthedocs.io/tr/.*", # noqa: E501
7579
r"https://virtualenv.pypa.io/": r"https://virtualenv.pypa.io/en/latest/",
7680
r"https://www.sphinx-doc.org/": r"https://www.sphinx-doc.org/en/master/",
7781
# Cookie consent
78-
r"https://www.youtube.com/playlist.*": r"https://consent.youtube.com/ml.*",
82+
r"https://www.youtube.com/playlist.*": r"https://consent.youtube.com/.*",
7983
}
8084

8185
# ignore linkcheck anchors for /#/$ANCHOR since it is used for
@@ -99,6 +103,9 @@
99103
r'https://github.com.+?#L\d+',
100104
r'https://github.com/cli/cli#installation',
101105
r'https://github.com/github/renaming#renaming-existing-branches',
106+
r'https://github.com/python/bedevere/#pr-state-machine',
107+
# "Anchor not found":
108+
r'https://packaging.python.org/.*#',
102109
# Discord doesn't allow robot crawlers: "403 Client Error: Forbidden"
103110
r'https://support.discord.com/hc/en-us/articles/219070107-Server-Nicknames',
104111
]

core-developers/motivations.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ participating in the CPython core development process:
145145
* Works as a `Software Engineer <https://www.linkedin.com/in/mariatta/>`_
146146
in Vancouver, helps organize `Vancouver PyLadies
147147
<https://www.meetup.com/PyLadies-Vancouver/>`_ meetup on the side, and
148-
sometimes `speaks <https://mariatta.ca/pages/talk-chronology.html#talk-chronology>`_
148+
sometimes `speaks <https://mariatta.ca/posts/talks/>`_
149149
at conferences.
150150
* Email address: mariatta@python.org
151151
* `Sponsor Mariatta on GitHub <https://github.com/sponsors/Mariatta>`_
@@ -157,7 +157,7 @@ participating in the CPython core development process:
157157

158158
.. topic:: R. David Murray (United States)
159159

160-
* Personal site: `bitdance.com <http://www.bitdance.com>`_
160+
* Personal site: `bitdance.com <https://www.bitdance.com>`_
161161
* Available for `Python and Internet Services Consulting
162162
and Python contract programming <https://www.murrayandwalker.com/>`_
163163

@@ -238,7 +238,7 @@ participating in the CPython core development process:
238238
is both an Ubuntu and a `Debian <https://www.debian.org/>`_ uploading
239239
developer. Barry has served as Python's postmaster, webmaster, release
240240
manager, Language Summit co-chair, `Jython <https://www.jython.org/>`_
241-
project leader, `GNU Mailman <http://www.list.org/>`_ project leader, and
241+
project leader, `GNU Mailman <https://www.list.org/>`_ project leader, and
242242
probably lots of other things he shouldn't admit to.
243243

244244
.. topic:: Eric Snow (United States)
@@ -327,7 +327,7 @@ on institutional sponsors allowing them to spend some or all of their work
327327
time contributing to CPython development.
328328

329329
.. _issue metrics: https://bugs.python.org/issue?@template=stats
330-
.. _OpenHub: https://www.openhub.net/p/python/contributors
330+
.. _OpenHub: https://openhub.net/p/python/contributors
331331
.. _core mentorship program: https://www.python.org/dev/core-mentorship/
332332
.. _internships: https://www.outreachy.org/
333333
.. _Summer of Code: https://wiki.python.org/moin/SummerOfCode/2016

development-tools/gdb.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ GDB 7 and later
2121
===============
2222

2323
In gdb 7, support for `extending gdb with Python
24-
<https://sourceware.org/gdb/onlinedocs/gdb/Python.html>`_ was
24+
<https://sourceware.org/gdb/current/onlinedocs/gdb.html/Python.html>`_ was
2525
added. When CPython is built you will notice a ``python-gdb.py`` file in the
2626
root directory of your checkout. Read the module docstring for details on how
2727
to use the file to enhance gdb for easier debugging of a CPython process.
@@ -355,7 +355,7 @@ this approach is less helpful when debugging the runtime virtual
355355
machine, since the main interpreter loop function,
356356
``_PyEval_EvalFrameDefault``, is well over 4,000 lines long as of Python 3.12.
357357
Fortunately, among the `many ways to set breakpoints
358-
<https://sourceware.org/gdb/onlinedocs/gdb/Location-Specifications.html>`_,
358+
<https://sourceware.org/gdb/current/onlinedocs/gdb.html/Location-Specifications.html>`_,
359359
you can break at C labels, such as those generated for computed gotos.
360360
If you are debugging an interpreter compiled with computed goto support
361361
(generally true, certainly when using GCC), each instruction will be

documentation/translating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ in production; others are works in progress.
111111
.. _github_ar: https://github.com/Abdur-rahmaanJ/python-docs-ar
112112
.. _github_bn_in: https://github.com/python/python-docs-bn-in
113113
.. _github_es: https://github.com/python/python-docs-es
114-
.. _github_fa: https://github.com/ftg-iran/python-docs-fa
114+
.. _github_fa: https://github.com/mmdbalkhi/python-docs-fa
115115
.. _github_fr: https://github.com/python/python-docs-fr
116116
.. _github_hi_in: https://github.com/CuriousLearner/python-docs-hi-in
117117
.. _github_hu: https://github.com/python/python-docs-hu

0 commit comments

Comments
 (0)