Skip to content

[docs] Put the wordmark in the homepage diagram's central node - #1471

Merged
manugarg merged 2 commits into
mainfrom
homepage-wordmark
Sep 7, 2026
Merged

manugarg merged 2 commits into
mainfrom
homepage-wordmark

Conversation

@manugarg

@manugarg manugarg commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

The central node of the homepage diagram still spelled CLOUDPROBER in Helvetica on a slate #647687 box, with a stock mxgraph.networks2 satellite dish next to it. This swaps it for the on-dark horizontal lockup on the brand ink #0F2A43, and deletes the stock dish — the mark carries its own.

The export has two layers, and both needed the edit

docs/static/homepage.svg is a draw.io export: the rendered SVG, plus the editable .drawio XML in the root element's content= attribute.

  • Rendered body — the lockup is already outlined to paths, so it inlines directly as a <g>. No <image>, no base64, no raster.
  • Embedded draw.io source — a new cloudprober-wordmark cell carries the same file as a data:image/svg+xml URI, parented to the box so it travels with it.

Patching only the first would mean the next person to open the file in draw.io gets the old box back.

Nothing else in the diagram moved

The box cell xQNlQs2I_ULp-5fTuDjN-4 keeps its id and its 356.25, 276, 163.75x75 geometry, so the seven edges anchored to it are untouched. Changed pixels in the regenerated PNG fall in bbox (520,360)-(848,510) — exactly the box rect.

The lockup is sized by the clear space rule in docs/brand/README.md, one cap height on all four sides, landing at 143.01 x 50.53 inside the box.

The PNG drops 315KB to 121KB: the old one carried draw.io's base64 raster fallback for the HTML text label, which an outlined lockup does not need.

Docs

docs/brand/README.md gains the steps to push a future lockup change through to this diagram. The brand-to-static copy table above it does not cover this file, since the lockup is embedded here rather than copied.

The PNG is rendered with headless Chrome, and the README now carries that command — the diagram's labels are foreignObject HTML, so a browser is the right tool and draw.io desktop is not required. As written in the doc it reproduces the committed homepage.png byte for byte. It also warns off cairosvg and rsvg, which have no foreignObject support and would silently drop every label.

I did not extend tools/logogen/build_logo.py to regenerate the diagram. That script derives everything from geometry constants into docs/brand/ and rasterizes with cairosvg; this diagram is hand-drawn, lives in docs/static/, and needs a different rasteriser for the reason above. It would be a second tool, not a few lines.

The central node still spelled CLOUDPROBER in Helvetica on a slate box, with
a stock satellite dish sitting next to it. Replace both with the on-dark
horizontal lockup on the brand ink, and drop the stock dish -- the mark
carries its own.

The box cell keeps its id and geometry, so the seven edges that anchor to it
are untouched; the diff in the rendered PNG is confined to the box rect. The
lockup is sized to the brand clear space rule, one cap height on all four
sides.

Both layers of the export are updated: the rendered body inlines the lockup's
paths, and the embedded draw.io source gets it as a data URI on a new
cloudprober-wordmark cell, parented to the box so it travels with it. Without
the second edit the next person to open the file in draw.io would get the old
box back.

The PNG shrinks by ~190KB along the way -- the old one carried draw.io's
base64 raster fallback for the text label, which an outlined lockup does not
need.

docs/brand/README.md gains the steps to push a future lockup change through
to this diagram, which the brand-to-static copy table does not cover.
The previous commit's step 3 said "re-render homepage.png" and left the how
to the reader, which in practice means draw.io desktop. It does not have to:
the diagram's labels are foreignObject HTML, so any browser renders the
export faithfully.

Spell out the command. Run against the current homepage.svg it reproduces the
committed homepage.png byte for byte.

Two things are easy to get wrong, so both are called out: the wrapper's
margin reset, without which the default 8px body margin shifts the whole
image, and the transparent background flag. Also warn off cairosvg and rsvg
-- neither supports foreignObject, so the lockup would survive but every
label in the diagram would silently vanish.
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