Repository navigation
[docs] Adopt the new Cloudprober logo across the site - #1461
Merged
Merged
Conversation
Wire the new logo kit into the website, the favicon set and the repo
README.
Site assets land in docs/static: the favicon names the Doks
head/favicons.html partial already looks for (favicon.ico, favicon.svg,
favicon-16x16.png, favicon-32x32.png, apple-touch-icon.png), plus a
logo/ directory with the horizontal and stacked lockups, the mark, PWA
icons and the social card. favicon.ico is repacked from the kit's
per-size renders -- the kit ships a 16x16-only .ico, and the file it
replaces was multi-size.
The navbar and homepage footer render the horizontal lockup in place of
the text wordmark, swapping to the on-dark file under [data-dark-mode].
Both anchors keep their accessible name via aria-label.
The lockup is wider than the text it replaced, so make room for it:
- Drop Surfacers from the main menu. It stays in the docs sidebar.
- Stop the nav list from shrinking and cap the search field instead.
Both shrink when the row runs short today, and the list wraps as
soon as it loses ~20px, since its item margins fall outside its
measured width. The links now hold one row from 992px up; 1024 and
1152 wrapped even before this change.
params.toml gains og:image/twitter:image and a JSON-LD organization
logo. Both were unset, so the site served no social card image at all
and pointed its schema logo at the bare domain. site.webmanifest gains
the icon set it never had.
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.
Wires the new logo kit into the website, the favicon set and the repo README.
Assets
Everything lands in
docs/static:head/favicons.htmlpartial already looks for:favicon.ico,favicon.svg,favicon-16x16.png,favicon-32x32.png,apple-touch-icon.png. The SVG icon link only renders ifstatic/favicon.svgexists, so adding it switched that on.logo/: horizontal and stacked lockups (light + on-dark), the mark, PWA icons (192 / 512 / 512-maskable) and the 1200x630 social card.favicon.icois repacked from the kit's per-size renders (16/32/48/64). The kit ships a 16x16-only.icodespite its README claiming otherwise, and the file it replaces was multi-size.Where the logo shows up
[data-dark-mode]. Both anchors keep their accessible name viaaria-label.<picture>, so GitHub's dark theme gets the white-ink version.Making room in the navbar
The lockup is wider than the text it replaced, so two changes pay for it:
What actually drives the wrapping: the list gives up a row as soon as it loses ~20px, because
.nav-item's 8px margins fall outside its measured width. Verified single-row at 992, 1024, 1152, 1280 and 1440 — 1024 and 1152 wrapped even before this change.Metadata
params.tomlgainsimages(og:image / twitter:image) andschemaLogo. Both were unset, so the site served no social card image at all and pointed its JSON-LD organization logo at the bare domain.site.webmanifestgains the icon set it never had.Not included
logo_assets/, the zip,PREVIEW.png) is left untracked. Happy to commit it somewhere if you want thebuild_final.pyscript and guidelines in-repo.web/resources/header.go) still shows a plain text "Cloudprober" link.placeholder=""andaria-label="", becausemodule.tomlmounts the Doksassets,layoutsandstaticdirectories but not itsi18ndirectory, so every theme translation resolves to nothing. Fixing it would switch on every other theme string at once, so it wants its own change.