Skip to content

Commit 74f2168

Browse files
AA-Turnerezio-melotti
authored andcommitted
Fix all references
1 parent c59ac2f commit 74f2168

19 files changed

+95
-84
lines changed

advanced-tools/clang.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _clang:
2+
13
***************************
24
Dynamic Analysis with Clang
35
***************************

advanced-tools/coverity.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
.. _coverity:
2+
13
=============
24
Coverity Scan
35
=============
46

5-
.. _coverity:
6-
77
Coverity Scan is a free service for static code analysis of Open Source
88
projects. It is based on Coverity's commercial product and is able to analyze
99
C, C++ and Java code.

appendix.rst

+33-33
Original file line numberDiff line numberDiff line change
@@ -6,65 +6,65 @@ Basics for contributors
66

77
.. note:: **Recommended reading**
88

9-
- :doc:`setup`
10-
- :doc:`pullrequest`
9+
- :doc:`starting/setup`
10+
- :doc:`starting/pullrequest`
1111

12-
* :doc:`help`
13-
* :doc:`communication`
12+
* :doc:`starting/help`
13+
* :doc:`developing/communication`
1414

1515
Core developers
1616
---------------
1717

1818
.. note:: **Recommended reading**
1919

20-
* :doc:`setup`
21-
* :doc:`pullrequest`
22-
* :doc:`committing`
20+
* :doc:`starting/setup`
21+
* :doc:`starting/pullrequest`
22+
* :doc:`committing/committing`
2323

24-
* :doc:`coredev`
25-
* :doc:`developers`
26-
* :doc:`motivations`
27-
* :doc:`experts`
24+
* :doc:`committing/coredev`
25+
* :doc:`committing/developers`
26+
* :doc:`committing/motivations`
27+
* :doc:`triaging/experts`
2828

2929
Development workflow for contributors
3030
-------------------------------------
3131

32-
* :doc:`devcycle`
33-
* :doc:`pullrequest`
34-
* :doc:`fixingissues`
32+
* :doc:`developing/devcycle`
33+
* :doc:`starting/pullrequest`
34+
* :doc:`starting/fixingissues`
3535

3636
Documenting Python and style guide
3737
----------------------------------
3838

39-
* :doc:`docquality`
40-
* :doc:`documenting`
39+
* :doc:`documenting/docquality`
40+
* :doc:`documenting/documenting`
4141

4242
Issue tracking and triaging
4343
---------------------------
4444

45-
* :doc:`tracker`
46-
* :doc:`triaging`
47-
* :doc:`gh-labels`
48-
* :doc:`gh-faq`
45+
* :doc:`triaging/tracker`
46+
* :doc:`triaging/triaging`
47+
* :doc:`triaging/gh-labels`
48+
* :doc:`triaging/gh-faq`
4949

5050
Language development in depth
5151
-----------------------------
5252

53-
* :doc:`exploring`
54-
* :doc:`grammar`
55-
* :doc:`compiler`
56-
* :doc:`garbage_collector`
57-
* :doc:`stdlibchanges`
58-
* :doc:`langchanges`
59-
* :doc:`porting`
53+
* :doc:`exploring/exploring`
54+
* :doc:`developing/grammar`
55+
* :doc:`exploring/compiler`
56+
* :doc:`exploring/garbage_collector`
57+
* :doc:`developing/stdlibchanges`
58+
* :doc:`developing/langchanges`
59+
* :doc:`developing/porting`
6060

6161
Testing and continuous integration
6262
----------------------------------
6363

64-
* :doc:`runtests`
65-
* :doc:`coverage`
66-
* :doc:`silencewarnings`
67-
* :doc:`buildbots`
68-
* :doc:`buildworker`
69-
* :doc:`coverity`
64+
* :doc:`testing/runtests`
65+
* :doc:`testing/coverage`
66+
* :doc:`testing/silencewarnings`
67+
* :doc:`testing/buildbots`
68+
* :doc:`testing/buildworker`
69+
* :doc:`tooling/coverity`
7070

developer-workflow/communication-channels.rst

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ RSS feed readers.
9292
.. _web gateway: https://mail.python.org/archives/
9393

9494

95+
.. _discourse_discuss:
96+
9597
Discourse (discuss.python.org web forum)
9698
----------------------------------------
9799

developer-workflow/grammar.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Note: sometimes things mysteriously don't work. Before giving up, try ``make cl
4848
* :file:`Python/ast_unparse.c` will need changes to unparse AST objects involved with the
4949
grammar change ("unparsing" is used to turn annotations into strings per :pep:`563`).
5050

51-
* The :doc:`compiler` has its own page.
51+
* The :ref:`compiler` has its own page.
5252

5353
* ``_Unparser`` in the :file:`Lib/ast.py` file may need changes to accommodate
5454
any modifications in the AST nodes.

documentation/help-documenting.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If you see a documentation issue that you would like to tackle, you can:
5757
* leave a comment on the issue saying you are going to try and create a pull
5858
request and roughly how long you think you will take to do so (this allows
5959
others to take on the issue if you happen to forget or lose interest).
60-
* submit a :doc:`pull request <pullrequest>` for the issue.
60+
* submit a :ref:`pull request <pullrequest>` for the issue.
6161

6262
By following the steps in the :ref:`Quick Guide to Pull Requests <pullrequest-quickguide>`,
6363
you will learn the workflow for documentation pull requests.
@@ -104,7 +104,7 @@ published in the release.
104104
Developer's Guide workflow
105105
--------------------------
106106

107-
To submit a :doc:`pull request <pullrequest>`, you can fork the
107+
To submit a :ref:`pull request <pullrequest>`, you can fork the
108108
`devguide repo`_ to your GitHub account and clone it using::
109109

110110
$ git clone https://github.com/<your_username>/devguide
@@ -129,7 +129,7 @@ in the checkout directory. On Windows use:
129129
You will find the generated files in ``_build/html`` or, if you use
130130
``make htmlview``, the docs will be opened in a browser once the build
131131
completes. Note that ``make check`` runs automatically when you submit
132-
a :doc:`pull request <pullrequest>`. You may wish to run ``make check``
132+
a :ref:`pull request <pullrequest>`. You may wish to run ``make check``
133133
and ``make linkcheck`` to make sure that it runs without errors.
134134

135135
.. _separate repository:

documentation/start-documenting.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ build completes.
15501550

15511551
You can also use ``make help`` to see a list of targets supported by
15521552
:command:`make`. Note that ``make check`` is automatically run when
1553-
you submit a :doc:`pull request <pullrequest>`, so you should make
1553+
you submit a :ref:`pull request <pullrequest>`, so you should make
15541554
sure that it runs without errors.
15551555

15561556
**On Windows**, a :file:`make.bat` batchfile tries to emulate :command:`make`

getting-started/getting-help.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ question.
1515
Discourse
1616
---------
1717

18-
Python has a hosted `Discourse`_ instance. This forum has many different
18+
Python has a hosted :ref:`Discourse <discourse_discuss>` instance. This forum has many different
1919
categories and most core development discussions take place in the open forum
2020
categories for `PEPs`_ and `Core Development`_ .
2121
Most categories are open for all users to read and post with the exception of
@@ -25,7 +25,7 @@ categories, such as
2525
`Core Workflow <https://discuss.python.org/c/core-workflow/8>`_.
2626

2727
.. seealso::
28-
`Discourse <https://devguide.python.org/communication/#discourse-discuss-python-org-web-forum>`_
28+
:ref:`Discourse <discourse_discuss>`
2929
on how to get started.
3030

3131

getting-started/git-boot-camp.rst

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ rename your local branch as follows::
184184
git branch -u upstream/main main
185185

186186

187+
.. _commit-changes:
188+
187189
Staging and Committing Files
188190
----------------------------
189191

getting-started/pull-request-lifecycle.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. _patch:
2+
.. _pullrequest:
23

34
Lifecycle of a Pull Request
45
===========================
@@ -89,7 +90,7 @@ You should have already :ref:`set up your system <setup>`,
8990
make patchcheck
9091
./python -m test
9192

92-
(Learn more about :ref:`patchcheck` and about :doc:`runtests`)
93+
(Learn more about :ref:`patchcheck` and about :ref:`runtests`)
9394

9495
* Once you are satisfied with the changes, add the files and commit them::
9596

index.rst

+27-27
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ instructions please see the :ref:`setup guide <setup>`.
4242
and the platform-specific pages for :ref:`UNIX <unix-compiling>`,
4343
:ref:`Mac OS <MacOS>`, and :ref:`Windows <windows-compiling>`.
4444

45-
4. :doc:`Run the tests <runtests>`::
45+
4. :ref:`Run the tests <runtests>`::
4646

4747
./python -m test -j3
4848

@@ -60,7 +60,7 @@ instructions please see the :ref:`setup guide <setup>`.
6060
6. Once you fixed the issue, run the tests, run ``make patchcheck``, and if
6161
everything is ok, commit.
6262

63-
7. Push the branch on your fork on GitHub and :doc:`create a pull request
63+
7. Push the branch on your fork on GitHub and :ref:`create a pull request
6464
<pullrequest>`. Include the issue number using ``gh-NNNN`` in the
6565
pull request description. For example::
6666

@@ -85,9 +85,9 @@ contributing to Python:
8585

8686
* `Issue tracker`_
8787
* `Buildbot status`_
88-
* :doc:`help`
88+
* :ref:`help`
8989
* PEPs_ (Python Enhancement Proposals)
90-
* :doc:`gitbootcamp`
90+
* :ref:`gitbootcamp`
9191

9292
.. _branchstatus:
9393

@@ -159,29 +159,29 @@ Guide for contributing to Python:
159159
+------------------------+---------------------+-----------------------+---------------------+
160160
| New Contributors | Documentarians | Triagers | Core Developers |
161161
+========================+=====================+=======================+=====================+
162-
| :doc:`setup` | :doc:`docquality` | :doc:`tracker` | :doc:`coredev` |
162+
| :ref:`setup` | :ref:`docquality` | :ref:`tracker` | :ref:`coredev` |
163163
+------------------------+---------------------+-----------------------+---------------------+
164-
| :doc:`help` | :doc:`documenting` | :doc:`triaging` | :doc:`developers` |
164+
| :ref:`help` | :ref:`documenting` | :ref:`triaging` | :ref:`developers` |
165165
+------------------------+---------------------+-----------------------+---------------------+
166-
| :doc:`pullrequest` | :ref:`style-guide` | :ref:`helptriage` | :doc:`committing` |
166+
| :ref:`pullrequest` | :ref:`style-guide` | :ref:`helptriage` | :ref:`committing` |
167167
+------------------------+---------------------+-----------------------+---------------------+
168-
| :doc:`runtests` | :ref:`rst-primer` | :doc:`experts` | :doc:`devcycle` |
168+
| :ref:`runtests` | :ref:`rst-primer` | :ref:`experts` | :ref:`devcycle` |
169169
+------------------------+---------------------+-----------------------+---------------------+
170-
| :doc:`fixingissues` | :ref:`translating` | | :doc:`motivations` |
170+
| :ref:`fixingissues` | :ref:`translating` | | :ref:`motivations` |
171171
+------------------------+---------------------+-----------------------+---------------------+
172-
| :doc:`communication` | | | :ref:`office hour` |
172+
| :ref:`communication` | | | :ref:`office hour` |
173173
+------------------------+---------------------+-----------------------+---------------------+
174-
| :doc:`gitbootcamp` | | | |
174+
| :ref:`gitbootcamp` | | | |
175175
+------------------------+---------------------+-----------------------+---------------------+
176176

177177
Advanced tasks and topics for once you are comfortable:
178178

179-
* :doc:`silencewarnings`
180-
* Fixing issues found by the :doc:`buildbots <buildbots>`
181-
* :doc:`coverity`
179+
* :ref:`silencewarnings`
180+
* Fixing issues found by the :ref:`buildbots <buildbots>`
181+
* :ref:`coverity`
182182
* Helping out with reviewing `open pull requests`_.
183183
See :ref:`how to review a Pull Request <how-to-review-a-pull-request>`.
184-
* :doc:`fixingissues`
184+
* :ref:`fixingissues`
185185

186186
It is **recommended** that the above documents be read as needed. New
187187
contributors will build understanding of the CPython workflow by reading the
@@ -206,8 +206,8 @@ developer's toolkit.
206206
While these kinds of change are much rarer than those described above, they do
207207
happen and that process is also described as part of this guide:
208208

209-
* :doc:`stdlibchanges`
210-
* :doc:`langchanges`
209+
* :ref:`stdlibchanges`
210+
* :ref:`langchanges`
211211

212212

213213
Other Interpreter Implementations
@@ -242,15 +242,15 @@ Key Resources
242242
* `Issue tracker`_
243243
* `Meta tracker <https://issues.roundup-tracker.org/>`_ (issue
244244
tracker for the issue tracker)
245-
* :doc:`experts`
245+
* :ref:`experts`
246246
* `Buildbot status`_
247247
* Source code
248248
* `Browse online <https://github.com/python/cpython/>`_
249249
* `Snapshot of the *main* branch <https://github.com/python/cpython/archive/main.zip>`_
250250
* `Daily OS X installer <https://buildbot.python.org/daily-dmg/>`_
251251
* PEPs_ (Python Enhancement Proposals)
252-
* :doc:`help`
253-
* :doc:`developers`
252+
* :ref:`help`
253+
* :ref:`developers`
254254

255255

256256
.. _resources:
@@ -261,14 +261,14 @@ Additional Resources
261261
* Anyone can clone the sources for this guide. See
262262
:ref:`helping-with-the-developers-guide`.
263263
* Help with ...
264-
* :doc:`exploring`
265-
* :doc:`grammar`
266-
* :doc:`parser`
267-
* :doc:`compiler`
268-
* :doc:`garbage_collector`
264+
* :ref:`exploring`
265+
* :ref:`grammar`
266+
* :ref:`parser`
267+
* :ref:`compiler`
268+
* :ref:`garbage_collector`
269269
* Tool support
270-
* :doc:`gdb`
271-
* :doc:`clang`
270+
* :ref:`gdb`
271+
* :ref:`clang`
272272
* Various tools with configuration files as found in the `Misc directory`_
273273
* Information about editors and their configurations can be found in the
274274
`wiki <https://wiki.python.org/moin/PythonEditors>`_

internals/compiler.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The grammar file for Python can be found in
3434
:file:`Grammar/python.gram`. The definitions for literal tokens
3535
(such as ``:``, numbers, etc.) can be found in :file:`Grammar/Tokens`.
3636
Various C files, including :file:`Parser/parser.c` are generated from
37-
these (see :doc:`grammar`).
37+
these (see :ref:`grammar`).
3838

3939

4040
Abstract Syntax Trees (AST)

internals/garbage-collector.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. _gc:
2+
.. _garbage_collector:
23

34
Design of CPython's Garbage Collector
45
=====================================

testing/buildbots.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Continuous Integration
55

66
.. highlight:: bash
77

8-
To assert that there are no regressions in the :doc:`development and maintenance
8+
To assert that there are no regressions in the :ref:`development and maintenance
99
branches <devcycle>`, Python has a set of dedicated machines (called *buildbots*
1010
or *build workers*) used for continuous integration. They span a number of
1111
hardware/operating system combinations. Furthermore, each machine hosts
@@ -105,7 +105,7 @@ introducing additional failures should generally not be an option.
105105
Flags-dependent failures
106106
------------------------
107107

108-
Sometimes, while you have run the :doc:`whole test suite <runtests>` before
108+
Sometimes, while you have run the :ref:`whole test suite <runtests>` before
109109
committing, you may witness unexpected failures on the buildbots. One source
110110
of such discrepancies is if different flags have been passed to the test runner
111111
or to Python itself. To reproduce, make sure you use the same flags as the

testing/coverage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ times.
258258
Filing the Issue
259259
""""""""""""""""
260260
Once you have increased coverage, you need to create an issue on the
261-
`issue tracker`_ and submit a :doc:`pull request <pullrequest>`. On the
261+
`issue tracker`_ and submit a :ref:`pull request <pullrequest>`. On the
262262
issue set the "Components" to "Test" and "Versions" to the version of Python you
263263
worked on (i.e., the in-development version).
264264

triage/github-bpo-faq.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
.. _gh-faq:
2+
13
GitHub issues for BPO users
24
===========================
35

46
Here are some frequently asked questions about how to do things in
57
GitHub issues that you used to be able to do on `bpo`_.
68

7-
Before you ask your own question, make sure you read :doc:`tracker`
8-
and :doc:`triaging` (specifically including :doc:`gh-labels`) as those
9+
Before you ask your own question, make sure you read :ref:`tracker`
10+
and :ref:`triaging` (specifically including :ref:`gh-labels`) as those
911
pages include a lot of introductory material.
1012

1113
How to format my comments nicely?

0 commit comments

Comments
 (0)