Skip to content

docs: match the sandbase.ai header and canvas - #59

Merged
liyangbing merged 1 commit into
mainfrom
codex/docs-header-sync-main
Nov 13, 2026
Merged

liyangbing merged 1 commit into
mainfrom
codex/docs-header-sync-main

Conversation

@liyangbing

Copy link
Copy Markdown
Contributor

Reader problem

The docs header still copied an older sandbase.ai navigation (Store / Build / Lab, GitHub, Sign in) and the light canvas was gray (#f7f7f8), so moving between the main site and /docs/ changed both the menu and the background.

Changes

  • .vitepress/theme/SiteHeader.vue: mirrors the current sandbase-fe site-header.tsx / site-navigation.ts.
    • Desktop: Models ▾ (LLMs and Image & video cards) / APIs / Skills / Agents / Docs / Pricing / Resources ▾ (Use in AI Tools, Open source, Influence, Lab ↗); right side is a single Start building (Console when signed in).
    • Mobile drawer: same order and items.
    • First top-up strip and signed-in balance/account menu stay omitted (need main-site APIs).
  • .vitepress/theme/custom.css: light --sb-canvas #f7f7f8 → #ffffff (main site --color-canvas). Dark mode unchanged (already matched).
  • scripts/test-site-header.mjs: pins the menu order and rejects the old Store / Build / Sign in items.

Verification

  • npm run validate: pass (including build and built public surface).
  • Local preview screenshots compared with www.sandbase.ai: page, Models menu, Resources menu, mobile drawer, Quickstart content on the white canvas.

The docs header still copied an older main-site navigation
(Store / Build / Lab, GitHub, Sign in). Mirror the current
sandbase-fe site-header: Models mega menu (LLMs, Image & video),
APIs, Skills, Agents, Docs, Pricing, Resources menu, and a single
Start building action. The mobile drawer follows the same order.

Light canvas goes from #f7f7f8 to #ffffff, the main site's
--color-canvas. Dark mode already matched.

test-site-header now pins the menu order and rejects the old items.
@liyangbing
liyangbing merged commit a715953 into main Nov 13, 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