Skip to content

chore(docs): upgrade docs site to @nebari/starlight v0.2.0#46

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

chore(docs): upgrade docs site to @nebari/starlight v0.2.0#46
dcmcand merged 1 commit into
mainfrom
docs/nebari-starlight-0.2.0

Conversation

@dcmcand

@dcmcand dcmcand commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Updates the docs site (docs/site) to the Nebari Starlight v0.2.0 theme.

What changed

Package Before After Why
@nebari/starlight ^0.1.5 ^0.2.0 the requested update
astro ^5.0.0 ^7.0.6 v0.2.0 peer-requires astro >=7.0.6
@astrojs/starlight ^0.33.0 ^0.41.3 Astro 7 requires it (peer astro ^7.0.2)

The @nebari/starlight plugin API is unchanged (nebari() is used the same way), but the theme's peer deps jump Astro two majors (5 to 7), which is what pulls in the rest of this diff.

Breaking changes handled

  • Starlight 0.39.0 removed label + autogenerate on a single sidebar entry. The CLI Reference group now wraps its autogenerate config in an items array.
  • Astro 7 ships a new native markdown pipeline. The custom remark-base-links plugin (which prefixes root-absolute links with the deployed /nebari-frames/ base path) still runs through markdown.remarkPlugins because @astrojs/markdown-remark comes in as a peer of both Astro and Starlight. No extra dependency was needed.

Verification

Built locally with the same SITE/BASE the main deploy uses:

  • npm ci resolves astro@7.0.6, @astrojs/starlight@0.41.3, @nebari/starlight@0.2.0, 0 vulnerabilities
  • Production build succeeds (22 pages)
  • Base-path link rewriting confirmed in the built HTML (e.g. /nebari-frames/installation/); no unprefixed content links leaked
  • New v0.2.0 theme is genuinely applied: new fonts (inter/lora/space-grotesk) present, old 0.1.6 fonts (poppins/atkinson) gone, new theme-select control rendered
  • The repo's SocialIcons override still renders only the repo-specific GitHub link (no org-level duplicate)

CI Node ('22') and local Node both satisfy Astro 7's >=22.12.0.

Follow-up (not in this PR)

Astro 7 emits a deprecation warning for markdown.remarkPlugins (it now prefers passing plugins to unified({...}) from @astrojs/markdown-remark). It still works today; porting remark-base-links off the deprecated option is a future cleanup.

Bumps the shared Nebari Starlight theme from 0.1.6 to 0.2.0. The theme's
plugin API is unchanged, but v0.2.0 peer-requires Astro >=7.0.6, so this
also moves the site off Astro 5:

- @nebari/starlight  ^0.1.5  -> ^0.2.0
- astro              ^5.0.0  -> ^7.0.6
- @astrojs/starlight ^0.33.0 -> ^0.41.3  (Astro 7 requires it)

Two breaking changes surfaced and are handled here:

- Starlight 0.39.0 dropped `label` + `autogenerate` on a single sidebar
  entry; the CLI Reference group now wraps its autogenerate config in an
  `items` array.
- Astro 7 ships a new native markdown pipeline. The custom
  remark-base-links plugin still runs via `markdown.remarkPlugins`
  because @astrojs/markdown-remark comes in as a peer of Astro and
  Starlight. Verified in the built output: root-absolute content links
  are still prefixed with the deployed base path.

CI Node ('22') and local Node both satisfy Astro 7's >=22.12.0.
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

📄 Docs preview for docs/nebari-starlight-0.2.0:
https://docs-nebari-starlight-0-2-0.nebari-frames.pages.dev

@dcmcand dcmcand merged commit 563612b into main Jul 7, 2026
6 checks passed
@dcmcand dcmcand deleted the docs/nebari-starlight-0.2.0 branch July 7, 2026 08:25
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