Skip to content

feat: migrate docs to Astro framework#30

Merged
jonathanperis merged 2 commits into
mainfrom
feat/migrate-docs-to-astro
Apr 9, 2026
Merged

feat: migrate docs to Astro framework#30
jonathanperis merged 2 commits into
mainfrom
feat/migrate-docs-to-astro

Conversation

@jonathanperis

Copy link
Copy Markdown
Owner

Summary

Migrates the GitHub Pages documentation site from static HTML to the Astro framework.

Changes

  • Framework: Replaced static HTML with Astro components
  • Design: 100% preserved - industrial/rust theme with orange accents (#ce4a00)
  • Features maintained:
    • Animated rotating cogs background
    • Floating particle effects
    • Stats dashboard with hover effects
    • Responsive design
    • Google Analytics tracking
  • SEO: Full metadata (Open Graph, Twitter Cards, JSON-LD structured data)
  • Build: Static export to docs/out/ directory
  • CI/CD: Updated GitHub Actions workflow for Astro build process

File Structure

docs/
├── astro.config.mjs       # Static output config
├── package.json           # Dependencies: astro, @astrojs/sitemap
├── src/
│   ├── layouts/BaseLayout.astro
│   ├── components/home/
│   │   ├── Navbar.astro
│   │   ├── Hero.astro
│   │   ├── Dashboard.astro
│   │   └── Footer.astro
│   ├── pages/index.astro
│   └── styles/globals.css
└── public/
    ├── docs/              # Preserved documentation
    ├── images/            # Screenshots and assets
    ├── robots.txt
    └── sitemap.xml

Testing

  • ✅ Local build successful (npm run build)
  • ✅ Static files generated in docs/out/
  • ✅ All original CSS animations preserved
  • ✅ Responsive breakpoints maintained

Deployment

After merge, the site will automatically deploy via GitHub Actions on push to main.

@jonathanperis jonathanperis force-pushed the feat/migrate-docs-to-astro branch 2 times, most recently from 1087b68 to a9114de Compare April 8, 2026 20:22
- Replace static HTML with Astro components
- Preserve all original design, animations, and styling
- Add proper SEO metadata (Open Graph, Twitter Cards, JSON-LD)
- Configure GitHub Actions workflow for Astro build process
- Move static assets to public/ directory
- Add stress test results section with performance metrics
- Restore 30 archived stress test reports to public/reports/
- Add historical reports grid with links to individual test runs
- Maintain responsive design and particle effects

Design preserved:
- Industrial/rust orange theme (#ce4a00)
- Animated cog decorations
- Floating particle effects
- Stats dashboard layout
- IBM Plex Mono font family

New features:
- Stress test metrics section (46k+ req/s, <50ms P95, 99.9% success)
- Historical reports grid (8 most recent + link to all 30)
- Links to CI/CD workflow and documentation
- Enhanced mobile responsiveness
@jonathanperis jonathanperis force-pushed the feat/migrate-docs-to-astro branch from a9114de to 99961e6 Compare April 8, 2026 20:30
…ts listing

- Replace raw HTML with Astro framework (React 19, Tailwind v4)
- Fix sidebar sticky positioning: restructure DocPageIsland as a React
  fragment rendering only sidebar/overlay; .docs-layout wrapper lives
  in Astro HTML so position:fixed resolves to viewport correctly
- Add /docs/ page with 6 static section components and scrollspy
- Add /reports/ listing page showing all k6 HTML reports
- Dynamic dashboard on home page via fs.readdirSync
- Custom scrollbar (WebKit + Firefox), overflow-x:clip on body
- Inject PUBLIC_GA_ID secret in deploy workflow
- Remove legacy public/docs/index.html and public/sitemap.xml
@jonathanperis jonathanperis merged commit 89c756a into main Apr 9, 2026
4 checks passed
@jonathanperis jonathanperis deleted the feat/migrate-docs-to-astro branch April 9, 2026 05:29
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