Skip to content

docs: Astro Starlight site scaffold + seed pages (#128, phase 1)#135

Merged
Ben Severn (benzsevern) merged 1 commit into
mainfrom
feat/128-docs-site-scaffold
May 28, 2026
Merged

docs: Astro Starlight site scaffold + seed pages (#128, phase 1)#135
Ben Severn (benzsevern) merged 1 commit into
mainfrom
feat/128-docs-site-scaffold

Conversation

@benzsevern
Copy link
Copy Markdown
Collaborator

Summary

  • New docs-site/ workspace running Astro Starlight (separate package, not in the library install).
  • Seed pages covering the things readers ask about first: Introduction, Quick start, Brand vs. vibe, BarChart reference (full prop table — template for other charts), Responsive sizing, Dark mode, Export to PNG/SVG, MCP overview, Vibe gallery.
  • Root package.json gains npm run docs:dev / docs:build proxying into docs-site/.
  • docs-site/README.md calls out what phase 1 covers and what's tracked as follow-ups.

Why phase 1, not the full site

The issue spec calls for all 15 chart pages + auto-generated prop tables + CI deploy. Trying to land that in one PR risks getting blocked on auto-doc tooling (react-docgen-typescript) or the GitHub Pages deploy re-wiring. Phase 1 ships the scaffold + the BarChart template + the high-value recipes; the remaining content is straightforward markdown to write once the bones are in place.

What's deferred (tracked under #128)

  • 14 more chart reference pages (LineChart, AreaChart, PieChart, ScatterPlot, HeatmapChart, RadarChart, SankeyChart, TreemapChart, Timeline, Flowchart, Diagram, ERDiagram, MindMap, OrgChart, ArchitectureDiagram, SequenceDiagram).
  • Auto-generated prop tables off TypeScript types (react-docgen-typescript).
  • CI deploy of the site alongside the existing playground.
  • Live MDX examples (right now examples are static code blocks).

Verification

  • npm run typecheck clean (root)
  • npm test — 421 tests pass (unchanged — no library code touched)
  • npm run build && npm run check:bundle — browser entry 51 KB gzipped (unchanged)
  • docs-site/ install + build not exercised in CI yet (no workflow change)

Test plan

  • Root typecheck/test/build/bundle green
  • Manual: cd docs-site && npm install && npm run dev
  • CI green (no docs-site job; existing library + mcp must still pass)

Closes phase 1 of #128.

docs/API.md doesn't scale across 15 charts and 27 vibes. Bootstraps an
Astro Starlight site so we get sidebar nav, MDX, search, dark mode, and
a stable place to grow per-chart references and recipes.

- new docs-site/ workspace: package.json, astro.config.mjs, tsconfig,
  content.config.ts
- seed pages:
  - Introduction (splash)
  - Quick start
  - Brand vs. vibe
  - BarChart reference (full prop table — template for the other charts)
  - Recipes: Responsive sizing, Dark mode, Export to PNG/SVG
  - MCP server overview
  - Vibe gallery (with a link to the playground for live previews)
- root package.json gains `docs:dev` / `docs:build` scripts proxying
  into docs-site
- README inside docs-site documents the phase-1 scope and what's
  deferred (14 more chart pages, auto-generated prop tables off TS
  types, CI deploy alongside the existing GH Pages playground)

No library changes; existing typecheck/test/build/bundle all unchanged.
@benzsevern Ben Severn (benzsevern) merged commit c15c767 into main May 28, 2026
5 checks passed
@benzsevern Ben Severn (benzsevern) deleted the feat/128-docs-site-scaffold branch May 28, 2026 17:30
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