Skip to content

馃帹 assets: add a logo, a frozen dict - #75

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

nstarman merged 1 commit into
mainfrom
docs/logo

Conversation

@nstarman

@nstarman nstarman commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

xmmutablemap had no logo. This gives it one: a snowflake between a dict's braces, for a mapping that can't change. It uses GalacticDynamics' purple and teal.

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: 943 bytes and sharp at any size. The script writes the SVG text directly, so the default needs no dependencies.
  • Geometry: the braces and the snowflake (its arms, and where its side branches grow and how long they are) are constants at the top of the script.
  • PNG on request: rendered with resvg-py, declared in the script's PEP 723 header, so uv run fetches it.
  • Location: docs/_static/, as in the other GalacticDynamics packages, ready for when xmmutablemap has docs. Nothing references it yet.

Checked:

  • The pre-commit hooks pass on the new files. The mypy hook is limited to src/, so it doesn't apply.
  • Re-running the script reproduces the file, and it reads on light and dark backgrounds and at 32 px.

Part of giving the GalacticDynamics packages scripted logos.

馃 Generated with Claude Code

xmmutablemap had no logo. It now has a snowflake between a dict's braces:
a mapping that cannot change, in GalacticDynamics' purple and teal.
docs/_static/make_logo.py writes it as an SVG (943 bytes), and as a PNG at
any size on request:

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nstarman nstarman added this to the v0.3.0 milestone Oct 4, 2026
@github-code-quality

Copy link
Copy Markdown

Code Coverage Overview

Languages: Python

Python / code-coverage-agent

The overall line coverage in commit 2cc880f in the docs/logo branch remains at 100%, unchanged from commit de309bb in the main branch.

@nstarman
nstarman merged commit 681f143 into main Oct 4, 2026
18 checks passed
@nstarman
nstarman deleted the docs/logo branch October 4, 2026 01:31
nstarman added a commit to nstarman/nstarman.github.io that referenced this pull request Oct 4, 2026
Its logo, mirrored from GalacticDynamics/xmmutablemap's docs/_static/favicon.svg
(GalacticDynamics/xmmutablemap#75) 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