Skip to content

docs: adopt @nebari/starlight shared theme plugin#127

Merged
dcmcand merged 1 commit into
mainfrom
docs/adopt-nebari-starlight-theme
Jul 7, 2026
Merged

docs: adopt @nebari/starlight shared theme plugin#127
dcmcand merged 1 commit into
mainfrom
docs/adopt-nebari-starlight-theme

Conversation

@dcmcand

@dcmcand dcmcand commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What this does

Switches the docs site to the published @nebari/starlight theme plugin (v0.2.0, the current release) instead of the theming we had hand-rolled in astro.config.mjs.

Adding plugins: [nebari({ logoHref: 'https://packs.nebari.dev/' })] pulls in the shared Nebari identity: brand colors, self-hosted fonts, logo, favicon, footer, and a GitHub link. It also means we track future theme releases instead of maintaining our own copy of the tokens.

Changes

  • Wire the nebari() plugin into the Starlight config. logoHref points the header logo at the portal root, so it returns to the pack catalog when the site is served under packs.nebari.dev/llm-serving-pack/.
  • Drop the custom SocialIcons/RepoButton override and the React/Tailwind/base-ui stack that only existed to support it. The theme ships its own GitHub link.
  • Delete the superseded nebari-tokens.css and starlight-theme.css, the Geist and IBM Plex font deps, the custom logo SVGs, and the now-dead shadcn components.json.
  • Bump astro to ^7.0.6 for the plugin's peer range.

Verification

  • npm test: 10/10 pass
  • npm run build with production BASE/SITE: 10 pages, mermaid + Pagefind + sitemap all built
  • scripts/check-links.sh: LINKS_OK
  • Checked the built output: Geist/IBM Plex gone, --nbr-* tokens and the theme's self-hosted fonts present, favicon and footer from the theme, logoHref and base path applied correctly.

Preview deploys through the existing Cloudflare Pages workflow.

Replace the hand-rolled Starlight theming with the published
@nebari/starlight v0.2.0 plugin so the docs site inherits Nebari's
shared identity (brand colors, self-hosted fonts, logo, favicon,
footer, and GitHub link) and picks up future theme releases.

- Wire plugins:[nebari({ logoHref })] into astro.config; on the portal
  the header logo returns users to the pack catalog.
- Drop the React/Tailwind/base-ui UI stack and the custom SocialIcons
  RepoButton in favor of the theme's default GitHub social link.
- Remove the superseded token/theme CSS, Geist/IBM Plex fonts, custom
  logo assets, and the now-dead shadcn config.
- Bump astro to ^7.0.6 to satisfy the plugin peer range.
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

📄 Docs preview for docs/adopt-nebari-starlight-theme:
https://docs-adopt-nebari-starlight.llm-serving-pack.pages.dev

@dcmcand dcmcand merged commit d137894 into main Jul 7, 2026
7 checks passed
@dcmcand dcmcand deleted the docs/adopt-nebari-starlight-theme branch July 7, 2026 08:34
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