File tree Expand file tree Collapse file tree 7 files changed +18
-20
lines changed Expand file tree Collapse file tree 7 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 178
178
# https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html
179
179
extlinks = {
180
180
"github" : ("https://github.com/%s/" , "%s" ),
181
+ "pypi" : ("https://pypi.org/project/%s/" , "%s" ),
181
182
}
182
183
183
184
# sphinxext-opengraph config
Original file line number Diff line number Diff line change @@ -125,8 +125,7 @@ How to add a NEWS entry
125
125
126
126
``NEWS `` entries go into the ``Misc/NEWS.d `` directory as individual files. The
127
127
``NEWS `` entry can be created by using `blurb-it <https://blurb-it.herokuapp.com/ >`_,
128
- or the `blurb <https://pypi.org/project/blurb/ >`_ tool and its ``blurb add ``
129
- command.
128
+ or the :pypi: `blurb ` tool and its ``blurb add `` command.
130
129
131
130
If you are unable to use the tool, then you can create the ``NEWS `` entry file
132
131
manually. The ``Misc/NEWS.d `` directory contains a sub-directory named
Original file line number Diff line number Diff line change @@ -249,11 +249,11 @@ order to make open source pleasant for everyone involved.
249
249
Additional repositories
250
250
=======================
251
251
252
- `Python Core Workflow `_ hosts the codebase for tools such as `blurb `_ .
252
+ `Python Core Workflow `_ hosts the codebase for tools such as :pypi: `blurb `.
253
253
254
254
Other core workflow tools are:
255
255
256
- * `cherry_picker `_ (`PyPI `_ )
256
+ * `cherry_picker `_ (:pypi: `PyPI <cherry_picker> ` )
257
257
* `bedevere `_
258
258
* `blurb_it `_
259
259
* `miss-islington `_
@@ -264,9 +264,7 @@ Python `Performance Benchmark`_ project is intended to be an authoritative
264
264
source of benchmarks for all Python implementations.
265
265
266
266
.. _Python Core Workflow : https://github.com/python/core-workflow
267
- .. _blurb : https://pypi.org/project/blurb
268
267
.. _cherry_picker : https://github.com/python/cherry-picker
269
- .. _PyPI : https://pypi.org/project/cherry_picker/
270
268
.. _bedevere : https://github.com/python/bedevere
271
269
.. _blurb_it : https://github.com/python/blurb_it
272
270
.. _miss-islington : https://github.com/python/miss-islington
Original file line number Diff line number Diff line change @@ -732,9 +732,12 @@ where simpler markup should be used:
732
732
733
733
In addition, the CPython documentation defines a few custom roles:
734
734
735
- * ``:gh:`ID` ``: creates a link to a GitHub issue.
736
- * ``:issue:`ID` ``: creates a link to a bugs.python.com issue.
737
- * ``:source:`PATH` ``: creates a link to a source file on GitHub.
735
+ * ``:cve:`YYYY-NNNNN` ``: link to a Common Vulnerabilities and Exposures entry.
736
+ * ``:cwe:`NNN` ``: link to a Common Weakness Enumeration entry.
737
+ * ``:gh:`ID` ``: link to a GitHub issue.
738
+ * ``:issue:`ID` ``: link to a bugs.python.com issue.
739
+ * ``:pypi:`NAME` ``: link to a project on PyPI.
740
+ * ``:source:`PATH` ``: link to a source file on GitHub.
738
741
739
742
There are some additional facilities that make cross-referencing roles more
740
743
versatile:
Original file line number Diff line number Diff line change @@ -209,23 +209,20 @@ Which version of the Python documentation should be translated?
209
209
---------------------------------------------------------------
210
210
211
211
Consensus is to work on current stable. You can then propagate your
212
- translation from one branch to another using `pomerge
213
- <https://pypi.org/project/pomerge/> `__.
212
+ translation from one branch to another using :pypi: `pomerge `.
214
213
215
214
216
215
Are there some tools to help in managing the repo?
217
216
--------------------------------------------------
218
217
219
218
Here's what we're using:
220
219
221
- - `pomerge <https://pypi.org/project/pomerge/ >`__ to propagate translations
222
- from one file to others.
223
- - `pospell <https://pypi.org/project/pospell/ >`__ to check for typos in ``.po `` files.
224
- - `powrap <https://pypi.org/project/powrap/ >`__ to rewrap the ``.po `` files
220
+ - :pypi: `pomerge ` to propagate translations from one file to others.
221
+ - :pypi: `pospell ` to check for typos in ``.po `` files.
222
+ - :pypi: `powrap ` to rewrap the ``.po `` files
225
223
before committing. This helps keep Git diffs short.
226
- - `potodo <https://pypi.org/project/potodo/ >`__ to list what needs to be translated.
227
- - `sphinx-lint <https://pypi.org/project/sphinx-lint/ >`__ to validate reST syntax in
228
- translation files.
224
+ - :pypi: `potodo ` to list what needs to be translated.
225
+ - :pypi: `sphinx-lint ` to validate reST syntax in translation files.
229
226
230
227
231
228
How is a coordinator elected?
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ The automated patch checklist runs through:
266
266
* Has the test suite been updated?
267
267
* Has an entry under ``Misc/NEWS.d/next `` been added?
268
268
(using `blurb-it <https://blurb-it.herokuapp.com/ >`_,
269
- or the ` blurb < https:// pypi.org/project/ blurb/ >`_ tool)
269
+ or the : pypi: ` blurb ` tool)
270
270
* Has ``Misc/ACKS `` been updated?
271
271
* Has ``configure `` been regenerated, if necessary?
272
272
* Has ``pyconfig.h.in `` been regenerated, if necessary?
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ instructions please see the :ref:`setup guide <setup>`.
124
124
125
125
8. Add a News entry into the ``Misc/NEWS.d `` directory as individual file. The
126
126
news entry can be created by using `blurb-it <https://blurb-it.herokuapp.com/ >`_,
127
- or the ` blurb < https:// pypi.org/project/ blurb/ >`_ tool and its ``blurb add ``
127
+ or the : pypi: ` blurb ` tool and its ``blurb add ``
128
128
command. Please read more about ``blurb `` in its
129
129
`repository <https://github.com/python/blurb >`_.
130
130
You can’t perform that action at this time.
0 commit comments