Repository navigation
[docs] Put the wordmark in the homepage diagram's central node - #1471
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The central node of the homepage diagram still spelled
CLOUDPROBERin Helvetica on a slate#647687box, with a stockmxgraph.networks2satellite 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.svgis a draw.io export: the rendered SVG, plus the editable.drawioXML in the root element'scontent=attribute.<g>. No<image>, no base64, no raster.cloudprober-wordmarkcell carries the same file as adata:image/svg+xmlURI, 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-4keeps its id and its356.25, 276, 163.75x75geometry, 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 at143.01 x 50.53inside 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.mdgains 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
foreignObjectHTML, so a browser is the right tool and draw.io desktop is not required. As written in the doc it reproduces the committedhomepage.pngbyte for byte. It also warns off cairosvg and rsvg, which have noforeignObjectsupport and would silently drop every label.I did not extend
tools/logogen/build_logo.pyto regenerate the diagram. That script derives everything from geometry constants intodocs/brand/and rasterizes with cairosvg; this diagram is hand-drawn, lives indocs/static/, and needs a different rasteriser for the reason above. It would be a second tool, not a few lines.