8000 PEP 1: Use plain text formatting for PEP Headers and fix links (#2259) · python/peps@36ce796 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36ce796

Browse files
hugovkCAM-Gerlach
andauthored
PEP 1: Use plain text formatting for PEP Headers and fix links (#2259)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent a79ef20 commit 36ce796

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

pep-0001.txt

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The standard PEP workflow is:
188188
"Informational", or "Process" as appropriate, and for the "Status:"
189189
field enter "Draft". For full details, see `PEP Header Preamble`_.
190190

191-
* Update `.github/CODEOWNERS` [3]_ such that any co-author(s) or sponsors
191+
* Update `.github/CODEOWNERS`_ such that any co-author(s) or sponsors
192192
with write access to the `PEP repository`_ are listed for your new file.
193193
This ensures any future pull requests changing the file will be assigned
194194
to them.
@@ -530,7 +530,9 @@ PEP Header Preamble
530530

531531
Each PEP must begin with an :rfc:`2822` style header preamble. The headers
532532
must appear in the following order. Headers marked with "*" are
533-
optional and are described below. All other headers are required. ::
533+
optional and are described below. All other headers are required.
534+
535+
.. code-block:: text
534536

535537
PEP: <pep number>
536538
Title: <pep title>
@@ -708,7 +710,7 @@ For each new PEP that comes in an editor does the following:
708710
* The file name extension is correct (i.e. ``.rst``).
709711

710712
* Ensure that everyone listed as a sponsor or co-author of the PEP who has write
711-
access to the `PEP repository`_ is added to `.github/CODEOWNERS` [3]_.
713+
access to the `PEP repository`_ is added to `.github/CODEOWNERS`_.
712714

713715
* Skim the PEP for obvious defects in language (spelling, grammar,
714716
sentence structure, etc.), and code style (examples should conform to
@@ -737,12 +739,8 @@ Once the PEP is ready for the repository, a PEP editor will:
737739
("Standards Track", "Informational", or "Process"), and marked its
738740
status as "Draft".
739741

740-
* Add the PEP to a local fork of the PEP repository. For workflow
741-
instructions, follow `The Python Developers Guide <http://docs.python.org/devguide>`_
742-
743-
The git repo for the peps is::
744-
745-
https://github.com/python/peps
742+
* Add the PEP to a local fork of the `PEP repository`_. For workflow
743+
instructions, follow `The Python Developers Guide <https://devguide.python.org/>`_
746744

747745
* Run ``./genpepindex.py`` and ``./pep2html.py <PEP Number>`` to ensure they
748746
are generated without errors. If either triggers errors, then the web site
@@ -770,15 +768,12 @@ administrative & editorial part (which is generally a low volume task).
770768

771769
Resources:
772770

773-
* `Index of Python Enhancement Proposals <http://www.python.org/dev/peps/>`_
771+
* `Index of Python Enhancement Proposals <https://www.python.org/dev/peps/>`_
774772

775773
* `Following Python's Development
776-
<http://docs.python.org/devguide/communication.html>`_
777-
778-
* `Python Developer's Guide <http://docs.python.org/devguide/>`_
774+
<https://devguide.python.org/communication/>`_
779775

780-
* `Frequently Asked Questions for Developers
781-
<http://docs.python.org/devguide/faq.html>`_
776+
* `Python Developer's Guide <https://devguide.python.org/>`_
782777

783778

784779
References and Footnotes
@@ -792,17 +787,17 @@ References and Footnotes
792787
in the PEPs repo README at
793788
https://github.com/python/peps/blob/main/README.rst
794789

795-
.. [3] `CODEOWNERS` documentation
796-
(https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners)
790+
.. _.github/CODEOWNERS:
791+
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
797792

798793
.. _issue tracker:
799-
http://bugs.python.org/
794+
https://bugs.python.org/
800795

801796
.. _CC0-1.0-Universal: https://choosealicense.com/licenses/cc0-1.0/
802797

803-
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
798+
.. _reStructuredText: https://docutils.sourceforge.io/rst.html
804799

805-
.. _Docutils: http://docutils.sourceforge.net/
800+
.. _Docutils: https://docutils.sourceforge.io/
806801

807802
.. _PEP repository: https://github.com/python/peps
808803

0 commit comments

Comments
 (0)
0