Skip to content

Commit 4619dca

Browse files
AA-Turnerezio-melotti
authored andcommitted
Split out contributing to the devguide
1 parent 6c9018f commit 4619dca

File tree

4 files changed

+57
-56
lines changed

4 files changed

+57
-56
lines changed

documentation/devguide.rst

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.. _devguide:
2+
3+
==================================
4+
Helping with the Developer's Guide
5+
==================================
6+
7+
.. highlight:: console
8+
9+
The Developer's Guide (what you're reading now) uses the same process as the
10+
main Python documentation, except for some small differences. The source
11+
lives in a `separate repository`_ and bug reports should be submitted to the
12+
`devguide GitHub tracker`_.
13+
14+
Our devguide workflow uses continuous integration and deployment so changes to
15+
the devguide are normally published when the pull request is merged. Changes
16+
to CPython documentation follow the workflow of a CPython release and are
17+
published in the release.
18+
19+
20+
Developer's Guide workflow
21+
==========================
22+
23+
To submit a :ref:`pull request <pullrequest>`, you can fork the
24+
`devguide repo`_ to your GitHub account and clone it using::
25+
26+
$ git clone https://github.com/<your_username>/devguide
27+
28+
For your PR to be accepted, you will also need to sign the
29+
:ref:`contributor agreement <cla>`.
30+
31+
To build the devguide, some additional dependencies are required (most
32+
importantly, `Sphinx`_), and the standard way to install dependencies in
33+
Python projects is to create a virtualenv, and then install dependencies from
34+
a ``requirements.txt`` file. For your convenience, this is all *automated for
35+
you*. To build the devguide on a Unix-like system use::
36+
37+
$ make html
38+
39+
in the checkout directory. On Windows use:
40+
41+
.. code-block:: doscon
42+
43+
> .\make html
44+
45+
You will find the generated files in ``_build/html`` or, if you use
46+
``make htmlview``, the docs will be opened in a browser once the build
47+
completes. Note that ``make check`` runs automatically when you submit
48+
a :ref:`pull request <pullrequest>`. You may wish to run ``make check``
49+
and ``make linkcheck`` to make sure that it runs without errors.
50+
51+
.. _separate repository:
52+
.. _devguide repo: https://github.com/python/devguide
53+
.. _devguide GitHub tracker: https://github.com/python/devguide/issues
54+
.. _Sphinx: https://www.sphinx-doc.org/

documentation/help-documenting.rst

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -82,58 +82,4 @@ a pull request directly. It's best to avoid filing a single issue for an entire
8282
section containing multiple problems; instead, file several issues so that it
8383
is easier to break the work up for multiple people and more efficient review.
8484

85-
86-
.. _helping-with-the-developers-guide:
87-
88-
Helping with the Developer's Guide
89-
----------------------------------
90-
91-
.. highlight:: console
92-
93-
The Developer's Guide (what you're reading now) uses the same process as the
94-
main Python documentation, except for some small differences. The source
95-
lives in a `separate repository`_ and bug reports should be submitted to the
96-
`devguide GitHub tracker`_.
97-
98-
Our devguide workflow uses continuous integration and deployment so changes to
99-
the devguide are normally published when the pull request is merged. Changes
100-
to CPython documentation follow the workflow of a CPython release and are
101-
published in the release.
102-
103-
104-
Developer's Guide workflow
105-
--------------------------
106-
107-
To submit a :ref:`pull request <pullrequest>`, you can fork the
108-
`devguide repo`_ to your GitHub account and clone it using::
109-
110-
$ git clone https://github.com/<your_username>/devguide
111-
112-
For your PR to be accepted, you will also need to sign the
113-
:ref:`contributor agreement <cla>`.
114-
115-
To build the devguide, some additional dependencies are required (most
116-
importantly, `Sphinx`_), and the standard way to install dependencies in
117-
Python projects is to create a virtualenv, and then install dependencies from
118-
a ``requirements.txt`` file. For your convenience, this is all *automated for
119-
you*. To build the devguide on a Unix-like system use::
120-
121-
$ make html
122-
123-
in the checkout directory. On Windows use:
124-
125-
.. code-block:: doscon
126-
127-
> .\make html
128-
129-
You will find the generated files in ``_build/html`` or, if you use
130-
``make htmlview``, the docs will be opened in a browser once the build
131-
completes. Note that ``make check`` runs automatically when you submit
132-
a :ref:`pull request <pullrequest>`. You may wish to run ``make check``
133-
and ``make linkcheck`` to make sure that it runs without errors.
134-
135-
.. _separate repository:
136-
.. _devguide repo: https://github.com/python/devguide
137-
.. _devguide GitHub tracker: https://github.com/python/devguide/issues
138-
.. _Sphinx: https://www.sphinx-doc.org/
13985
.. _issue tracker: https://github.com/python/cpython/issues

documentation/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Documentation
1010
style-guide
1111
markup
1212
translating
13+
devguide

index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Python Developer's Guide
66

77
This guide is a comprehensive resource for :ref:`contributing <contributing>`
88
to Python_ -- for both new and experienced contributors. It is
9-
:ref:`maintained <helping-with-the-developers-guide>` by the same
9+
:ref:`maintained <devguide>` by the same
1010
community that maintains Python. We welcome your contributions to Python!
1111

1212
.. _quick-reference:
@@ -259,7 +259,7 @@ Additional Resources
259259
--------------------
260260

261261
* Anyone can clone the sources for this guide. See
262-
:ref:`helping-with-the-developers-guide`.
262+
:ref:`devguide`.
263263
* Help with ...
264264
* :ref:`exploring`
265265
* :ref:`grammar`

0 commit comments

Comments
 (0)