Skip to content

Commit

Permalink
Dark mode: Invert some images (#2409)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
hugovk and AA-Turner authored Mar 11, 2022
1 parent 1a79345 commit 5d0ebd0
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions pep-0001.txt
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ an API can replace version 1.
The possible paths of the status of PEPs are as follows:

.. image:: pep-0001-process_flow.png
:class: invert-in-dark-mode
:alt: PEP process flow diagram

While not shown in the diagram, "Accepted" PEPs may technically move to
Expand Down
1 change: 1 addition & 0 deletions pep-0458.txt
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ trusted to sign for files available on PyPI. The next two sections cover the
details of signing repository files and the types of keys used for each role.

.. image:: pep-0458-1.png
:class: invert-in-dark-mode

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

Expand Down
1 change: 1 addition & 0 deletions pep-0480.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ packages in the minimum security model, but not in the maximum model, without
also compromising a developer's key.

.. image:: pep-0480-1.png
:class: invert-in-dark-mode

Figure 1: An overview of the metadata layout in the maximum security model.
The maximum security model supports continuous delivery and survivable key
Expand Down
2 changes: 2 additions & 0 deletions pep-0495.txt
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ the ``fold`` attribute depending on the kind of the transition.
.. image:: pep-0495-fold-2.png
:align: center
:width: 60%
:class: invert-in-dark-mode

The sketch above illustrates the relationship between the UTC and
local time around a fall-back transition. The zig-zag line is a graph
Expand All @@ -412,6 +413,7 @@ effect after the transition should be used.
.. image:: pep-0495-gap.png
:align: center
:width: 60%
:class: invert-in-dark-mode

The sketch above illustrates the relationship between the UTC and
local time around a spring-forward transition. At the transition, the
Expand Down
1 change: 1 addition & 0 deletions pep-0525.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ iterated:
.. image:: pep-0525-1.png
:align: center
:width: 80%
:class: invert-in-dark-mode


PyAsyncGenASend and PyAsyncGenAThrow
Expand Down
1 change: 1 addition & 0 deletions pep-0532.txt
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ breaking protocol (although it glosses over the technical detail of looking
up the special methods via the type rather than the instance):

.. image:: pep-0532/circuit-breaking-protocol.svg
:class: invert-in-dark-mode
:alt: diagram of circuit breaking protocol applied to ternary expression

We will work through the following expression::
Expand Down
2 changes: 2 additions & 0 deletions pep-0550.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,7 @@ Appendix: HAMT Performance Analysis
.. figure:: pep-0550-hamt_vs_dict-v2.png
:align: center
:width: 100%
:class: invert-in-dark-mode

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

Expand All @@ -1581,6 +1582,7 @@ The above chart demonstrates that:
.. figure:: pep-0550-lookup_hamt.png
:align: center
:width: 100%
:class: invert-in-dark-mode

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

Expand Down
2 changes: 2 additions & 0 deletions pep-0603.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ Performance
.. figure:: pep-0603-hamt_vs_dict.png
:align: center
:width: 100%
:class: invert-in-dark-mode

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

Expand All @@ -312,6 +313,7 @@ The above chart demonstrates that:
.. figure:: pep-0603-lookup_hamt.png
:align: center
:width: 100%
:class: invert-in-dark-mode

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

Expand Down
1 change: 1 addition & 0 deletions pep-3147.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ Here is a flow chart describing how modules are loaded:

.. image:: pep-3147-1.png
:scale: 75
:class: invert-in-dark-mode


Alternative Python implementations
Expand Down
4 changes: 4 additions & 0 deletions pep_sphinx_extensions/pep_theme/static/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
--colour-inline-code: #333;
--colour-warning: #900;
}

img.invert-in-dark-mode {
filter: invert(1);
}

0 comments on commit 5d0ebd0

Please sign in to comment.