feat: migrate docs-site from React+Vite SPA to Astro#34
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace Vite+React SPA with Astro static site generation. All page content now renders as static HTML at build time for SEO. Interactive parts (asciinema player, copy buttons) use React islands with client:visible hydration. - Split monolithic App.tsx into 16 Astro/React components - FadeIn converted from React hook to <fade-in> web component (~300B) - CopyButton, AsciinemaTerminal, DemoSequence remain as React islands - Build-time .cast detection replaces runtime HEAD fetch - Add OG tags, Twitter cards, canonical URL, sitemap, robots.txt - Move asciinema-player CSS to global.css to avoid FOUC - Tailwind CSS 4 via @tailwindcss/vite plugin (unchanged) - GitHub Actions workflow unchanged (same build cmd + dist/ path) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
App.tsxinto 16 Astro/React components; interactive parts (asciinema player, copy buttons) use React islands withclient:visiblehydrationDetails
<fade-in>web component (vanilla JS)client:visible).castdetectionTailwind CSS 4 unchanged (
@tailwindcss/vite). GitHub Actions workflow unchanged.Test plan
bun run buildsucceedsdist/index.htmlcontains all text content as static HTML (view source)sitemap-index.xmlandrobots.txtpresent in dist🤖 Generated with Claude Code