Skip to content

Commit 26d5c49

Browse files
committed
Fix many spurious block quotes and wrong syntax highlighting languages
1 parent 10f40c8 commit 26d5c49

13 files changed

+61
-35
lines changed

source/guides/dropping-older-python-versions.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ Steps:
7878

7979
You can specify version ranges and exclusion rules, such as at least Python 3. Or, Python 2.7, 3.4 and beyond.
8080

81-
Examples::
81+
Examples:
82+
83+
.. code-block:: text
8284
8385
Requires-Python: ">=3"
8486
Requires-Python: ">2.7,!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"

source/guides/installing-using-linux-tools.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ To install pip, wheel, and setuptools, in a parallel, non-system environment
107107
openSUSE
108108
~~~~~~~~
109109

110-
.. code-block:: bash
110+
.. code-block:: bash
111111
112-
sudo zypper install python3-pip python3-setuptools python3-wheel
112+
sudo zypper install python3-pip python3-setuptools python3-wheel
113113
114114
115115
.. _debian-ubuntu:
@@ -134,9 +134,9 @@ Firstly, update and refresh repository lists by running this command:
134134
Arch Linux
135135
~~~~~~~~~~
136136

137-
.. code-block:: bash
137+
.. code-block:: bash
138138
139-
sudo pacman -S python-pip
139+
sudo pacman -S python-pip
140140
141141
----
142142

source/guides/making-a-pypi-friendly-readme.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ such as ``text/plain``, ``text/x-rst`` (for reStructuredText), or ``text/markdow
5959
6060
The minimum required versions of the respective tools are:
6161

62-
- ``setuptools >= 38.6.0``
63-
- ``wheel >= 0.31.0``
64-
- ``twine >= 1.11.0``
62+
- ``setuptools >= 38.6.0``
63+
- ``wheel >= 0.31.0``
64+
- ``twine >= 1.11.0``
6565

6666
It's recommended that you use ``twine`` to upload the project's distribution packages:
6767

source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ for your new :term:`PyPI project <Project>`.
3737
However it is also possible to add `trusted publishing`_ to any
3838
pre-existing project, if you are its owner.
3939

40-
.. attention::
40+
.. attention::
4141

42-
If you followed earlier versions of this guide, you
43-
have created the secrets ``PYPI_API_TOKEN`` and ``TEST_PYPI_API_TOKEN``
44-
for direct PyPI and TestPyPI access. These are obsolete now and
45-
you should remove them from your GitHub repository and revoke
46-
them in your PyPI and TestPyPI account settings in case you are replacing your old setup with the new one.
42+
If you followed earlier versions of this guide, you
43+
have created the secrets ``PYPI_API_TOKEN`` and ``TEST_PYPI_API_TOKEN``
44+
for direct PyPI and TestPyPI access. These are obsolete now and
45+
you should remove them from your GitHub repository and revoke
46+
them in your PyPI and TestPyPI account settings in case you are replacing your old setup with the new one.
4747

4848

4949
Let's begin! 🚀

source/guides/using-testpypi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Setting up TestPyPI in :file:`.pypirc`
7575
If you want to avoid entering your username, you can configure TestPyPI in
7676
your :file:`$HOME/.pypirc`:
7777

78-
.. code::
78+
.. code:: ini
7979
8080
[testpypi]
8181
username = <your TestPyPI username>

source/specifications/binary-distribution-format.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.. highlight:: text
12

23
.. _binary-distribution-format:
34

@@ -285,7 +286,9 @@ or the installation will fail.
285286
If JSON web signatures are used, one or more JSON Web Signature JSON
286287
Serialization (JWS-JS) signatures is stored in a file RECORD.jws adjacent
287288
to RECORD. JWS is used to sign RECORD by including the SHA-256 hash of
288-
RECORD as the signature's JSON payload::
289+
RECORD as the signature's JSON payload:
290+
291+
.. code-block:: json
289292
290293
{ "hash": "sha256=ADD-r2urObZHcxBW3Cr-vDCu5RJwT4CaRTHiFmbcIYY" }
291294

source/specifications/core-metadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. highlight:: text
2+
13
.. _`core-metadata`:
24

35
============================

source/specifications/dependency-specifiers.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. highlight:: text
2+
13
.. _dependency-specifiers:
24

35
=====================
@@ -273,7 +275,9 @@ error like all other unknown variables.
273275
- ``test``
274276

275277
The ``implementation_version`` marker variable is derived from
276-
``sys.implementation.version``::
278+
``sys.implementation.version``:
279+
280+
.. code-block:: python
277281
278282
def format_full_version(info):
279283
version = '{0.major}.{0.minor}.{0.micro}'.format(info)
@@ -400,7 +404,9 @@ The complete parsley grammar::
400404
sub_delims = '!' | '$' | '&' | '\\'' | '(' | ')' | '*' | '+' | ',' | ';' | '='
401405
hexdig = digit | 'a' | 'A' | 'b' | 'B' | 'c' | 'C' | 'd' | 'D' | 'e' | 'E' | 'f' | 'F'
402406

403-
A test program - if the grammar is in a string ``grammar``::
407+
A test program - if the grammar is in a string ``grammar``:
408+
409+
.. code-block:: python
404410
405411
import os
406412
import sys

source/specifications/direct-url-data-structure.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.. highlight:: json
12

23
.. _direct-url-data-structure:
34

@@ -32,7 +33,9 @@ for security reasons.
3233

3334
The user:password section of the URL MAY however
3435
be composed of environment variables, matching the following regular
35-
expression::
36+
expression:
37+
38+
.. code-block:: text
3639
3740
\$\{[A-Za-z0-9-_]+\}(:\$\{[A-Za-z0-9-_]+\})?
3841

source/specifications/entry-points.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ restrictions on values specified in :pep:`685`.
111111
For tools writing the file, it is recommended only to insert a space between the
112112
object reference and the left square bracket.
113113

114-
For example::
114+
For example:
115+
116+
.. code-block:: ini
115117
116118
[console_scripts]
117119
foo = foomod:main

0 commit comments

Comments
 (0)