chore(deps): migrate docs to Astro 6 + Starlight 0.39 - #105
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
rz1989s
force-pushed
the
chore/docs-astro-6
branch
from
June 4, 2026 04:48
c7b83e3 to
3026268
Compare
Supersedes #100 (astro 5->6.4.4, @astrojs/starlight 0.37->0.39.3). Starlight 0.39 requires Astro 6, and both carry breaking changes needing code updates. - astro.config: Starlight 0.39 restructured autogenerated sidebar groups — `autogenerate` must nest under `items`, and subgroups no longer inherit the parent's collapsed state, so set autogenerate.collapsed explicitly. - SiteTitle override: drop the unused `import type { Props }` from the deprecated `@astrojs/starlight/props` path. - Node: Astro 6 requires >=22.12 — add engines.node and bump the three workflows (docs-validate, scheduled-api-sync, deploy) 20 -> 22. The typedoc/SDK bumps (#104) are independent and intentionally left out here. Content collections already use docsLoader/docsSchema (no migration needed). Verified: npm run build (typedoc docs:api + astro build) green — 1277 pages, Pagefind search index, sitemap.
rz1989s
force-pushed
the
chore/docs-astro-6
branch
from
June 4, 2026 04:51
3026268 to
47c934c
Compare
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.
Summary
Migrates docs-sip to Astro 6 + @astrojs/starlight 0.39 (Starlight 0.39 requires Astro 6). Supersedes #100 — will close it once green.
The typedoc /
@sip-protocol/sdkbumps (#104) are an independent concern (typedoc generates the API-reference markdown; unrelated to the framework) and are intentionally not in this PR.Dependencies
(Transitively: @astrojs/mdx 4→5, markdown-remark 6→7, compiler 2→4, prism 3→4 — all peer-consistent with Astro 6.) Lockfile regenerated from scratch (the incremental update hit a stale-tree ERESOLVE).
Code migration (breaking changes)
astro.config.mjs— Starlight 0.39 restructured autogenerated sidebar groups:autogeneratemust nest underitems, and subgroups no longer inherit the parent'scollapsedstate. Thereference/dir has subdirectories (classes, functions, interfaces, …), soautogenerate.collapsed: trueis set to preserve the collapsed UX.src/components/SiteTitle.astro— dropped the unusedimport type { Props }from the deprecated@astrojs/starlight/propspath.Head.astro— unchanged; its<Default>wrap +astro:page-loadmermaid re-render still valid under Astro 6.Not affected: content collections already use
docsLoader()/docsSchema(); the og:image head entry already hascontentinsideattrs; noViewTransitions/Astro.glob/raw-zod usage.Environment
Astro 6 needs Node ≥22.12 — added
engines.nodeand bumped the three workflows (docs-validate,scheduled-api-sync,deploy) node 20 → 22.Verification (local)
npm installclean (fresh tree, no peer conflicts)npm run build— typedocdocs:api+astro buildgreen: 1277 pages, Pagefind search index, sitemapPlease verify on the Vercel preview