Skip to content

Commit 706f75b

Browse files
committed
Dark mode: invert some images
1 parent 4bdabc6 commit 706f75b

File tree

9 files changed

+15
-0
lines changed

9 files changed

+15
-0
lines changed

pep-0458.txt

+1
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ 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-image
491492
.. image:: pep-0458-1.png
492493

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

pep-0480.txt

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ 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-image
209210
.. image:: pep-0480-1.png
210211

211212
Figure 1: An overview of the metadata layout in the maximum security model.

pep-0495.txt

+2
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ 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-image
387388
.. image:: pep-0495-fold-2.png
388389
:align: center
389390
:width: 60%
@@ -409,6 +410,7 @@ local time that falls in a gap, the rules in effect before the
409410
transition should be used if ``fold=0``. Otherwise, the rules in
410411
effect after the transition should be used.
411412

413+
.. rst-class:: invert-image
412414
.. image:: pep-0495-gap.png
413415
:align: center
414416
:width: 60%

pep-0525.txt

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

389+
.. rst-class:: invert-image
389390
.. image:: pep-0525-1.png
390391
:align: center
391392
:width: 80%

pep-0532.txt

+1
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ 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-image
683684
.. image:: pep-0532/circuit-breaking-protocol.svg
684685
:alt: diagram of circuit breaking protocol applied to ternary expression
685686

pep-0550.rst

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

1568+
.. rst-class:: invert-image
15681569
.. figure:: pep-0550-hamt_vs_dict-v2.png
15691570
:align: center
15701571
:width: 100%
@@ -1578,6 +1579,7 @@ The above chart demonstrates that:
15781579

15791580
* ``dict.copy()`` becomes very slow around 100 items.
15801581

1582+
.. rst-class:: invert-image
15811583
.. figure:: pep-0550-lookup_hamt.png
15821584
:align: center
15831585
:width: 100%

pep-0603.rst

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

298+
.. rst-class:: invert-image
298299
.. figure:: pep-0603-hamt_vs_dict.png
299300
:align: center
300301
:width: 100%
@@ -309,6 +310,7 @@ The above chart demonstrates that:
309310
* ``dict.copy()`` becomes less efficient when using around
310311
100-200 items.
311312

313+
.. rst-class:: invert-image
312314
.. figure:: pep-0603-lookup_hamt.png
313315
:align: center
314316
:width: 100%

pep-3147.txt

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

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

319+
.. rst-class:: invert-image
319320
.. image:: pep-3147-1.png
320321
:scale: 75
321322

pep_sphinx_extensions/pep_theme/static/dark.css

+4
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
--colour-inline-code: #333;
1717
--colour-warning: #900;
1818
}
19+
20+
.invert-image {
21+
filter: invert(1);
22+
}

0 commit comments

Comments
 (0)