You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dependabot opened #347 to bump astro in /site from 6.4.8 → 7.0.1. Astro 7 is a major release with breaking changes, so we held off auto-merging it. This issue tracks the full migration so it can be done safely in one PR.
Close #347 in favor of this issue's PR (or update #347 to also bump Starlight). Astro 7 also requires astro@^7.0.2, so use astro@^7.0.2 or later — not just ^7.0.1.
Scope
Files in scope: everything under /site (Starlight docs site that deploys to GitHub Pages at https://microsoft.github.io/waza). Do not touch /web (the dashboard).
Goal
Upgrade /site to Astro 7 with a compatible Starlight version, verify the docs site still builds and renders correctly, and update CI/docs as needed.
Tasks
In site/package.json, bump:
astro from ^6.4.7 to ^7.0.2 (or latest 7.x)
@astrojs/starlight from ^0.40.0 to ^0.41.1 (or latest — this version requires astro@^7.0.2, confirmed via npm registry)
Run cd site && rm -rf node_modules package-lock.json && npm install to regenerate the lockfile cleanly
Run cd site && npm run build and ensure it completes with no errors
Run cd site && npx playwright test (if site/e2e/ tests exist and run in CI) — fix any failures
Spot-check rendered output for whitespace regressions caused by the compressHTML default change to 'jsx' in Astro 7 (it now strips whitespace using JSX rules by default). If any docs page has visibly broken inline-element spacing, set compressHTML: true in site/astro.config.mjs to preserve the previous HTML-aware behavior. Pay attention to MDX pages with inline <code>, <a>, or custom components.
Verify site/astro.config.mjs still type-checks (// @ts-check is at the top); update any Starlight option shapes if the new version changed them
Check that the GitHub Pages deploy workflow still works against Astro 7 (actions/deploy-pages and the build step)
Context
Dependabot opened #347 to bump
astroin/sitefrom6.4.8→7.0.1. Astro 7 is a major release with breaking changes, so we held off auto-merging it. This issue tracks the full migration so it can be done safely in one PR.Close #347 in favor of this issue's PR (or update #347 to also bump Starlight). Astro 7 also requires
astro@^7.0.2, so useastro@^7.0.2or later — not just^7.0.1.Scope
Files in scope: everything under
/site(Starlight docs site that deploys to GitHub Pages at https://microsoft.github.io/waza). Do not touch/web(the dashboard).Goal
Upgrade
/siteto Astro 7 with a compatible Starlight version, verify the docs site still builds and renders correctly, and update CI/docs as needed.Tasks
site/package.json, bump:astrofrom^6.4.7to^7.0.2(or latest 7.x)@astrojs/starlightfrom^0.40.0to^0.41.1(or latest — this version requiresastro@^7.0.2, confirmed via npm registry)cd site && rm -rf node_modules package-lock.json && npm installto regenerate the lockfile cleanlycd site && npm run buildand ensure it completes with no errorscd site && npx playwright test(ifsite/e2e/tests exist and run in CI) — fix any failurescompressHTMLdefault change to'jsx'in Astro 7 (it now strips whitespace using JSX rules by default). If any docs page has visibly broken inline-element spacing, setcompressHTML: trueinsite/astro.config.mjsto preserve the previous HTML-aware behavior. Pay attention to MDX pages with inline<code>,<a>, or custom components.site/astro.config.mjsstill type-checks (// @ts-checkis at the top); update any Starlight option shapes if the new version changed themactions/deploy-pagesand the build step)Non-breaking-but-relevant changes in Astro 7
Reference: https://github.com/withastro/astro/releases
@astrojs/dbremoved. ✅ We don't use it (verified — no references in/site), so no action.compressHTMLdefault flipped to'jsx'.astro dev --backgroundmode for AI agents. Optional, doesn't affect us.Acceptance criteria
cd site && npm install && npm run buildsucceeds locally and in CIsite/package.jsonlistsastro@^7.0.2(or later) and@astrojs/starlight@^0.41.x(or later)site/package-lock.jsonis regeneratedOut of scope
/webor the Go code/site(e.g.sharp,@playwright/test) in the same PR — keep this focused on the Astro/Starlight upgradeBranch & PR conventions
Per
AGENTS.md, usesquad/{issue-number}-{slug}branch naming and reference this issue withCloses #{issue-number}in the PR body.