Repository navigation
docs: move the website to Starlight - #1367
Merged
Merged
Conversation
This was referenced Nov 30, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1367 +/- ##
=======================================
Coverage 93.97% 93.97%
=======================================
Files 3 3
Lines 83 83
Branches 20 20
=======================================
Hits 78 78
Misses 3 3
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 30, 2026
The documentation website is built with Astro and Starlight from the root workspace (pnpm docs:build), keeping every URL of the Docusaurus website; tag pages and the search page redirect to their counterparts. - Example pages show the code of the example as text next to its live preview, so search engines and agents can read it. - Pages end with a trailing slash in canonical URLs, the sitemap and internal links, as GitHub Pages serves them, so no link costs a redirect. - robots.txt points to the sitemap; sitemap.xml still answers at its old address. - llms.txt, llms-small.txt and llms-full.txt describe the documentation for agents. - The StackBlitz editor works again: it needs a cross-origin isolated page, and a service worker makes an example page isolated when the editor is asked for. - Props tables are generated from the sources at build time; the EthicalAds banner and Umami stay.
The links lead straight to the pages, and the FAQ replaces the Stack Overflow link.
Type-aware lint reads the types of astro:content, which astro sync writes to the ignored .astro folder: a fresh install, as in CI, has them now.
An isolated page embeds only isolated frames: the service worker adds the headers to the previews of the examples too, so the Preview tab works next to the editor.
Safari has no credentialless COEP, and the service worker may fail to register where site data is blocked: instead of a useless reload, or a button that does nothing, the editor opens on StackBlitz.
Docusaurus took the description of a page from its first paragraph, Starlight uses the one of the website: each FAQ page has its own description for search results again.
The logo and the favicon answer at /img/ as before.
dangreen
force-pushed
the
docs/starlight-website
branch
from
November 30, 2026 16:12
d6a3f08 to
50c0256
Compare
Bundlephobia answers the shields.io badge with "rate limited by upstream service". The bundlejs badge measures the gzip size of the package with chart.js and react left out as externals.
The conversion from Docusaurus dropped the logo, and Starlight shows content images as blocks, so the badges stood one per line. The logo floats beside the intro again, and the badges wrap in a row with equal gaps on both axes.
The first tab is the one shown by default. The README lists pnpm first as well.
dangreen
marked this pull request as ready for review
November 30, 2026 20:05
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.
Part 9 of the tooling stack. Based on master (#1366 is merged).
Replaces #1361: the website moves after the CommonJS drop, so this PR also moves the Migration to v6 guide and the new FAQ answer from #1366 over to Starlight.
What
The documentation website moves from Docusaurus 3 to Astro 7 + Starlight 0.43, built from the root workspace with
pnpm docs:build(sandboxes first, thenastro checkandastro build).Every page URL of the old website keeps working: the pages keep their paths, and
/tags/*and/search(which have no counterpart) redirect: chart tags to their component pages,/tagsto the examples./img/logo.svgand/img/favicon.icostay;/opensearch.xmlof the Docusaurus search is gone.The four search and agent fixes
App.tsxof its sandbox as a code block next to the live preview. Before, the code existed only inside an iframe, so search engines and AI tools saw an empty page (~50 words, now 150–310)./examples/line-chart/, but canonicals and the sitemap pointed to/examples/line-chart, which redirects twice (tohttp://…/and back tohttps). NowtrailingSlash: 'always', and a small rehype plugin adds the slash to internal links in Markdown.robots.txt+ sitemap.robots.txtpoints tositemap-index.xml.sitemap.xml, the address Search Console knows, still answers as an index of the new sitemap./searchand/tags/*are no longer in it.llms.txt,llms-small.txtandllms-full.txt(viastarlight-llms-txt), with the example code included.StackBlitz works again
On the current website the StackBlitz tab shows "Unable to run Embedded Project: …embedded without proper isolation headers". WebContainers need a cross-origin isolated page, which GitHub Pages cannot serve. Now:
?stackblitz. A service worker (public/coi-serviceworker.js) addsCOOP: same-origin+COEP: credentiallessonly to such navigations and to the previews they embed (an isolated page embeds only isolated frames), and the editor loads withcorp=1.credentialless(notrequire-corpas in nano_kit) keeps the EthicalAds banner and Umami working on the isolated page too. I checked it: the ad decision, image and view pixel all load.Kept from the old website
srcwithreact-docgen-typescript, shown as a list (the 5-column table did not fit).Algolia search is replaced by Starlight's built-in Pagefind. The Stack Overflow navbar link is gone (the tag is dead; the README points to the FAQ, the home page to the FAQ and GitHub Discussions).
Checked locally
pnpm docs:buildfrom a clean state: 46 pages,astro check0 errors.<h1>. All 17 previews render a painted chart. No internal link lacks the trailing slash. Old/tags/line-chartredirects to/components/line/.pnpm test,pnpm oxlint(the website's.ts,.jsand.astrofiles are linted too).After merging
https://react-chartjs-2.js.org/sitemap-index.xmland request indexing of the example and component pages.Stack
🤖 Generated with Claude Code