Files
htmx/www/package.json
Christian Tanul b136824697 Rebuild documentation website with Astro (#3703)
Replace the Zola-based documentation site with a complete Astro rebuild.

Website:
- Full Astro + Tailwind CSS site with dark mode support
- Landing page with prose content sections and construction banner
- Responsive sidebar navigation with search (FlexSearch)
- Pattern demo system using service workers for client-side routing
- Morph-based page transitions via htmx

Content:
- Complete docs section (get started, core concepts, features, extensions, troubleshooting)
- Full reference section (attributes, events, headers, config, methods)
- Pattern examples (loading, forms, records, display, advanced)
- Extension docs for all core extensions plus download, ptag, targets
- Extension migration guide (htmx 2.x to 4.x)
- Migration guide (htmx 2.x to 4.x)
- Essays, interviews, and podcasts ported from old site

Infrastructure:
- Astro content collections for docs, reference, patterns, essays, team
- Playwright e2e tests (smoke, search, demos, patterns)
- Netlify deployment config
- npm run site / npm run www shortcuts
- /discord redirect to htmx.org/discord
- Redirect map for all old site URLs
2026-03-15 10:59:41 -06:00

37 lines
1021 B
JSON

{
"name": "htmx-website",
"type": "module",
"version": "0.0.1",
"scripts": {
"predev": "rsync -a ../dist/ public/js/",
"dev": "NODE_ENV=development astro dev",
"start": "NODE_ENV=development astro dev",
"prebuild": "rsync -a ../dist/ public/js/",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"test": "playwright test",
"test:ui": "playwright test --ui",
"test:headed": "playwright test --headed"
},
"dependencies": {
"@astrojs/mdx": "^4.3.13",
"@astrojs/rss": "^4.0.15",
"@astrojs/sitemap": "^3.7.1",
"astro": "5.18.0",
"flexsearch": "^0.8.212",
"rehype-autolink-headings": "^7.1.0",
"rehype-external-links": "^3.0.0",
"rehype-slug": "^6.0.0",
"sharp": "^0.34.2"
},
"devDependencies": {
"@iconify/json": "^2.2.419",
"@iconify/tailwind4": "^1.2.0",
"@playwright/test": "^1.58.2",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.17",
"tailwindcss": "^4.1.17"
}
}