Skip to content

馃帹 assets: add a logo, diffrax's plus a plus, drawn by a script - #55

Merged
nstarman merged 1 commit into
mainfrom
docs/logo
Oct 3, 2026
Merged

nstarman merged 1 commit into
mainfrom
docs/logo

Conversation

@nstarman

@nstarman nstarman commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

diffraxtra had no logo. This gives it one: diffrax's logo with a big + cut out beside the integral, for the extras.

diffrax's docs logo is Material Design Icons' math-integral-box: an integral sign cut out of a rounded square. Here the integral is scaled to share the box with a + of the same weight, and both are cut out with an SVG mask, so they show whatever the logo sits on.

docs/_static/make_logo.py writes it:

uv run docs/_static/make_logo.py                     # docs/_static/favicon.svg
uv run docs/_static/make_logo.py --size 2048 big.png # a PNG, at any size
  • SVG by default: 738 bytes and sharp at any size. The script writes the SVG text directly, so the default needs no dependencies.
  • PNG on request: rendered with resvg-py, declared in the script's PEP 723 header, so uv run fetches it and no system libraries are needed.
  • Location: docs/_static/, as in the other GalacticDynamics packages, ready for when diffraxtra has docs. Nothing references it yet.
  • Credit: the integral's path is from Material Design Icons (Pictogrammers), under the Apache License 2.0, as noted in the script.

Checked: prek passes on the new files. The SVG renders correctly in WebKit and resvg, with transparent cut-outs. Re-running the script reproduces the file.

Part of giving the GalacticDynamics packages scripted logos, after GalacticDynamics/galax#904 and GalacticDynamics/quaxed#216.

馃 Generated with Claude Code

diffraxtra had no logo. It now has diffrax's (Material Design Icons'
math-integral-box: an integral sign cut out of a rounded square) with a big
+ cut out beside the integral, for the extras. docs/_static/make_logo.py
writes it as an SVG (738 bytes), and as a PNG at any size on request:

    uv run docs/_static/make_logo.py --size 2048 big.png

The integral's path is the icon set's, credited in the script with its
Apache-2.0 licence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nstarman nstarman added this to the v1.7.0 milestone Oct 3, 2026
@nstarman
nstarman merged commit b4e19c0 into main Oct 3, 2026
22 checks passed
@nstarman
nstarman deleted the docs/logo branch October 3, 2026 22:27
nstarman added a commit to nstarman/nstarman.github.io that referenced this pull request Oct 3, 2026
Its logo, mirrored from GalacticDynamics/diffraxtra's docs/_static/favicon.svg
(GalacticDynamics/diffraxtra#55) by scripts/sync-software-figures.mjs: drawn 512 px wide and
saved as WebP at quality 85.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant