Files
brand/docs/assets.md
T
Claude e59808c194 Add README header banners for every repository
tools/gen.py draws a 1280x320 banner per repo (banner/<repo>.svg) in the
social previews' style, plus banner/suite for the org; render.js exports
1x and 2x PNGs. Docs note where repos keep their copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRR7XmhWoFbzJFFFqde
2026-11-06 01:32:17 +00:00

1.5 KiB
Raw Blame History

Assets: previews, uploading and regenerating

Previews

D-Modem hardware
app menu
bbs go3270
brand

README banners

banner/<repo>.svg is the 1280×320 header at the top of each repository's README, rendered to banner/<repo>.png and banner/<repo>@2x.png. banner/suite.png is the organization's own, for the profile and website.

Each repository keeps a copy of its @2x PNG at .github/banner.png and shows it above its title:

<img src=".github/banner.png" alt="D-Modem/<repo>: <tagline>" width="100%">

bbs banner

Uploading to GitHub

GitHub has no API for these, so they are uploaded by hand:

  • Org avatar: the organization's Settings → Profile → Profile picture → upload avatar/org-avatar@2x.png.
  • Social previews: each repository's Settings → General → Social preview → Edit → Upload an image → social/<repo>.png.

Regenerating

The SVGs are generated by tools/gen.py (colors, taglines and tags are at the top of it) and rendered to PNG by tools/render.js with Playwright's Chromium. Sauce Code Pro (SauceCodePro Nerd Font Mono) must be installed for the text to render as intended; the SVGs name it as their font, so viewers without it fall back to another monospace font.

python3 tools/gen.py
python3 tools/app_icon.py
node tools/render.js