devguide icon indicating copy to clipboard operation
devguide copied to clipboard

Make release cycle charts reusable

Open hugovk opened this issue 1 month ago • 4 comments

Right now, the release cycle SVGs are monochrome when viewed as standalone images:

image

This is because all the colours are defined in the website's own .css file.

This PR moves the colours into the SVG files themselves, except for the theme-aware overrides using things like --color-foreground-primary from Furo, needed for dark/light mode support.

Also serve these images, so we can display them on https://www.python.org/downloads/ where our end users visit, and not just in the CPython developer's guide. Re: https://endoflife.date/recommendations#bad---python

Needed for PR: pythondotorg#2837


📚 Documentation preview 📚: https://cpython-devguide--1708.org.readthedocs.build/

hugovk avatar Nov 29 '25 13:11 hugovk

Would it make sense to provide light, dark, and “responsive” variants? More generally: is this just for python.org, or do we want others to easily reuse this?

If we decide that serving 3×2 static images, rather than 2, is worth it, I'd prefer doing the related changes myself -- I can clean up and adjust the CSS while doing that.

encukou avatar Dec 01 '25 11:12 encukou

Right now this is just for python.org which only has a light theme.

No objections to making more variants in the future, and I'm happy for you to do it.

What would a "responsive" variant be? The SVG is already, well, scalable :)

hugovk avatar Dec 01 '25 11:12 hugovk

What would a "responsive" variant be? The SVG is already, well, scalable :)

Responding to the user's light/dark preference :)

I've sent my suggestions here: https://github.com/hugovk/devguide/pull/36

encukou avatar Dec 01 '25 16:12 encukou

Thanks, hugovk#36 merged!

image

hugovk avatar Dec 03 '25 14:12 hugovk

Any further comments?

hugovk avatar Dec 23 '25 15:12 hugovk