Skip to content

Commit 9e8eff9

Browse files
committed
Use native :class: option
1 parent 11bee7a commit 9e8eff9

9 files changed

+12
-12
lines changed

pep-0001.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ an API can replace version 1.
438438

439439
The possible paths of the status of PEPs are as follows:
440440

441-
.. rst-class:: invert-in-dark-mode
442441
.. image:: pep-0001-process_flow.png
442+
:class: invert-in-dark-mode
443443
:alt: PEP process flow diagram
444444

445445
While not shown in the diagram, "Accepted" PEPs may technically move to

pep-0458.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ also indicates the types of keys used to sign each role, and which roles are
488488
trusted to sign for files available on PyPI. The next two sections cover the
489489
details of signing repository files and the types of keys used for each role.
490490

491-
.. rst-class:: invert-in-dark-mode
492491
.. image:: pep-0458-1.png
492+
:class: invert-in-dark-mode
493493

494494
Figure 1: An overview of the role metadata available on PyPI.
495495

pep-0480.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ projects are signed by an online key. That is, an attacker is able to corrupt
206206
packages in the minimum security model, but not in the maximum model, without
207207
also compromising a developer's key.
208208

209-
.. rst-class:: invert-in-dark-mode
210209
.. image:: pep-0480-1.png
210+
:class: invert-in-dark-mode
211211

212212
Figure 1: An overview of the metadata layout in the maximum security model.
213213
The maximum security model supports continuous delivery and survivable key

pep-0495.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ smaller after any transition that creates a fold. The values returned
384384
by ``tzname()`` and ``dst()`` may or may not depend on the value of
385385
the ``fold`` attribute depending on the kind of the transition.
386386

387-
.. rst-class:: invert-in-dark-mode
388387
.. image:: pep-0495-fold-2.png
389388
:align: center
390389
:width: 60%
390+
:class: invert-in-dark-mode
391391

392392
The sketch above illustrates the relationship between the UTC and
393393
local time around a fall-back transition. The zig-zag line is a graph
@@ -410,10 +410,10 @@ local time that falls in a gap, the rules in effect before the
410410
transition should be used if ``fold=0``. Otherwise, the rules in
411411
effect after the transition should be used.
412412

413-
.. rst-class:: invert-in-dark-mode
414413
.. image:: pep-0495-gap.png
415414
:align: center
416415
:width: 60%
416+
:class: invert-in-dark-mode
417417

418418
The sketch above illustrates the relationship between the UTC and
419419
local time around a spring-forward transition. At the transition, the

pep-0525.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ reference implementation introduces three new objects:
386386
methods). Essentially, they control how asynchronous generators are
387387
iterated:
388388

389-
.. rst-class:: invert-in-dark-mode
390389
.. image:: pep-0525-1.png
391390
:align: center
392391
:width: 80%
392+
:class: invert-in-dark-mode
393393

394394

395395
PyAsyncGenASend and PyAsyncGenAThrow

pep-0532.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ The following diagram illustrates the core concepts behind the circuit
680680
breaking protocol (although it glosses over the technical detail of looking
681681
up the special methods via the type rather than the instance):
682682

683-
.. rst-class:: invert-in-dark-mode
684683
.. image:: pep-0532/circuit-breaking-protocol.svg
684+
:class: invert-in-dark-mode
685685
:alt: diagram of circuit breaking protocol applied to ternary expression
686686

687687
We will work through the following expression::

pep-0550.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1565,10 +1565,10 @@ coroutine.
15651565
Appendix: HAMT Performance Analysis
15661566
===================================
15671567

1568-
.. rst-class:: invert-in-dark-mode
15691568
.. figure:: pep-0550-hamt_vs_dict-v2.png
15701569
:align: center
15711570
:width: 100%
1571+
:class: invert-in-dark-mode
15721572

15731573
Figure 1. Benchmark code can be found here: [9]_.
15741574

@@ -1579,10 +1579,10 @@ The above chart demonstrates that:
15791579

15801580
* ``dict.copy()`` becomes very slow around 100 items.
15811581

1582-
.. rst-class:: invert-in-dark-mode
15831582
.. figure:: pep-0550-lookup_hamt.png
15841583
:align: center
15851584
:width: 100%
1585+
:class: invert-in-dark-mode
15861586

15871587
Figure 2. Benchmark code can be found here: [10]_.
15881588

pep-0603.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,10 @@ fairly detailed description of the algorithm as well.
295295
Performance
296296
-----------
297297

298-
.. rst-class:: invert-in-dark-mode
299298
.. figure:: pep-0603-hamt_vs_dict.png
300299
:align: center
301300
:width: 100%
301+
:class: invert-in-dark-mode
302302

303303
Figure 1. Benchmark code can be found here: [3]_.
304304

@@ -310,10 +310,10 @@ The above chart demonstrates that:
310310
* ``dict.copy()`` becomes less efficient when using around
311311
100-200 items.
312312

313-
.. rst-class:: invert-in-dark-mode
314313
.. figure:: pep-0603-lookup_hamt.png
315314
:align: center
316315
:width: 100%
316+
:class: invert-in-dark-mode
317317

318318
Figure 2. Benchmark code can be found here: [4]_.
319319

pep-3147.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ Flow chart
316316

317317
Here is a flow chart describing how modules are loaded:
318318

319-
.. rst-class:: invert-in-dark-mode
320319
.. image:: pep-3147-1.png
321320
:scale: 75
321+
:class: invert-in-dark-mode
322322

323323

324324
Alternative Python implementations

0 commit comments

Comments
 (0)