From 72aa5868acf71e00e687e6395a08119bf9cc20b6 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 11 Dec 2025 13:01:35 +0200 Subject: [PATCH 1/2] PEP 12: SVG is allowed after PEP 676 --- peps/pep-0012.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/peps/pep-0012.rst b/peps/pep-0012.rst index c269b60f2f1..f2a38929835 100644 --- a/peps/pep-0012.rst +++ b/peps/pep-0012.rst @@ -599,10 +599,8 @@ processed output using the ``image`` directive: .. image:: diagram.png -Any browser-friendly graphics format is possible; PNG should be +Any browser-friendly graphics format is possible; SVG or PNG are preferred for graphics, JPEG for photos and GIF for animations. -Currently, SVG must be avoided due to compatibility issues with the -PEP build system. For accessibility and readers of the source text, you should include a description of the image and any key information contained within From 005041afe29a4e0695fee31746a5671294fb97b6 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 11 Dec 2025 16:41:54 +0200 Subject: [PATCH 2/2] Optimise + light/dark mode Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --- peps/pep-0012.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peps/pep-0012.rst b/peps/pep-0012.rst index f2a38929835..377fc915db7 100644 --- a/peps/pep-0012.rst +++ b/peps/pep-0012.rst @@ -601,6 +601,8 @@ processed output using the ``image`` directive: Any browser-friendly graphics format is possible; SVG or PNG are preferred for graphics, JPEG for photos and GIF for animations. +Images should be optimised to reduce their file size, and should +be legible in both light and dark mode in the browser. For accessibility and readers of the source text, you should include a description of the image and any key information contained within