From e989ffe7aaf35d15eb641385311ce302a13c0773 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 8 Mar 2023 00:21:34 +0200 Subject: [PATCH 1/2] Meta: document the shortcut links --- README.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.rst b/README.rst index db00cf13017..cf6ba69f9e0 100644 --- a/README.rst +++ b/README.rst @@ -10,6 +10,16 @@ about writing one, please start reading at :pep:`1`. Note that the PEP Index (:pep:`0`) is automatically generated based on the metadata headers in other PEPs. +Canonical links +=============== + +The canonical form of PEP links are zero-padded, such as +https://peps.python.org/pep-0008/ + +Shortcut redirects are also available. +For example, https://peps.python.org/8 redirects to the canonical form. + + Contributing to PEPs ==================== From b93fdddb4c1bda3046cf91a755cfbce09620094a Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 8 Mar 2023 11:15:37 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: C.A.M. Gerlach --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index cf6ba69f9e0..2fa0f9656b7 100644 --- a/README.rst +++ b/README.rst @@ -14,10 +14,10 @@ Canonical links =============== The canonical form of PEP links are zero-padded, such as -https://peps.python.org/pep-0008/ +``https://peps.python.org/pep-0008/`` Shortcut redirects are also available. -For example, https://peps.python.org/8 redirects to the canonical form. +For example, ``https://peps.python.org/8`` redirects to the canonical link. Contributing to PEPs