Skip to content

docs: use the colour Vantage SVG as the navbar logo - #6

Merged
jamesbeedy merged 1 commit into
mainfrom
docs/vantage-logo-svg-nav
Sep 6, 2026
Merged

jamesbeedy merged 1 commit into
mainfrom
docs/vantage-logo-svg-nav

Conversation

@jamesbeedy

Copy link
Copy Markdown
Contributor

What

Replaces the navbar logo with the colour Vantage SVG served from the site's own
static/img/, and points the logo's click target at the docs hub.

  • docusaurus/static/img/vantage-logo-color.svg — new, 4.4K, 175x40 viewBox.
  • docusaurus/docusaurus.config.tsnavbar.logo now src: 'img/vantage-logo-color.svg',
    href: 'https://docs.vantagecompute.ai', target: '_self'.

Why

Two problems with the old configuration:

  1. The mark was a PNG fetched from the S3 branding bucket on every page load, so the
    header waited on a third-party request and the raster blurred at high zoom.
  2. Its href was https://docs.vantagecompute.ai/developer/armasec-lite/, this site's
    own root, so clicking the logo from any page other than the landing page navigated
    back to the landing page rather than out to the hub.

srcDark is deliberately gone rather than duplicated. The theme pins
--vantage-navbar-bg to #18123B in both colour modes, and the wordmark's glyphs are
fill="white", so a single asset reads identically in light and dark. A second file
would only be a second thing to keep in sync.

Verification

npm run build in docusaurus/ succeeds (14 pydoc modules, 33 documents). Reading the
built output rather than trusting the build's exit code:

  • build/img/vantage-logo-color.svg is present.
  • build/index.html renders the brand anchor as
    <a href="https://docs.vantagecompute.ai" target="_self" rel="noopener noreferrer" class="navbar__brand">.
  • Both themed <img> tags point at /developer/armasec-lite/img/vantage-logo-color.svg.

Note, unchanged by this PR

The theme's CSS hides .navbar__logo below 1024px
(--vantage-navbar-logo-hide-bp), so on narrow viewports there is no logo and therefore
no hub link. That is pre-existing behaviour, not something this change introduces.

🤖 Generated with Claude Code

The navbar mark was a PNG fetched from the S3 branding bucket on every page
load, and its href pointed back at this site's own root, so clicking the logo
went nowhere. Serve the SVG from static/img instead and send the click to the
docs hub at https://docs.vantagecompute.ai.

No srcDark: the theme pins the navbar background to #18123B in both colour
modes, so the wordmark's white glyphs read identically either way.

Verified by building the site and reading build/index.html: the brand anchor
carries href="https://docs.vantagecompute.ai" and both themed <img> tags point
at /developer/armasec-lite/img/vantage-logo-color.svg.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jamesbeedy
jamesbeedy merged commit 33bd7ac into main Sep 6, 2026
1 check passed
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