Skip to content

Commit 395670c

Browse files
committed
migrate: rewrite site as Astro static site
- Convert from single HTML to Astro project - All content preserved and enhanced (features, ecosystem, variants, quick start, architecture, repos) - Bilingual CN/EN via data-lang toggle - Tabbed quick start (Full / Standalone / Dashboard / Agent) - GitHub Actions deploy workflow to GitHub Pages - Static build, zero client JS except lang/tab toggle
1 parent da930d3 commit 395670c

15 files changed

Lines changed: 4808 additions & 357 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: pages
12+
cancel-in-progress: false
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: npm
22+
- run: npm ci
23+
- run: npm run build
24+
- uses: actions/upload-pages-artifact@v3
25+
with:
26+
path: dist/
27+
deploy:
28+
needs: build
29+
runs-on: ubuntu-latest
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
steps:
34+
- id: deployment
35+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

AGENTS.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Development
2+
3+
When starting the dev server, use background mode:
4+
5+
```
6+
astro dev --background
7+
```
8+
9+
Manage the background server with `astro dev stop`, `astro dev status`, and `astro dev logs`.
10+
11+
## Documentation
12+
13+
Full documentation: https://docs.astro.build
14+
15+
Consult these guides before working on related tasks:
16+
17+
- [Adding pages, dynamic routes, or middleware](https://docs.astro.build/en/guides/routing/)
18+
- [Working with Astro components](https://docs.astro.build/en/basics/astro-components/)
19+
- [Using React, Vue, Svelte, or other framework components](https://docs.astro.build/en/guides/framework-components/)
20+
- [Adding or managing content](https://docs.astro.build/en/guides/content-collections/)
21+
- [Adding styles or using Tailwind](https://docs.astro.build/en/guides/styling/)
22+
- [Supporting multiple languages](https://docs.astro.build/en/guides/internationalization/)

CLAUDE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Development
2+
3+
When starting the dev server, use background mode:
4+
5+
```
6+
astro dev --background
7+
```
8+
9+
Manage the background server with `astro dev stop`, `astro dev status`, and `astro dev logs`.
10+
11+
## Documentation
12+
13+
Full documentation: https://docs.astro.build
14+
15+
Consult these guides before working on related tasks:
16+
17+
- [Adding pages, dynamic routes, or middleware](https://docs.astro.build/en/guides/routing/)
18+
- [Working with Astro components](https://docs.astro.build/en/basics/astro-components/)
19+
- [Using React, Vue, Svelte, or other framework components](https://docs.astro.build/en/guides/framework-components/)
20+
- [Adding or managing content](https://docs.astro.build/en/guides/content-collections/)
21+
- [Adding styles or using Tailwind](https://docs.astro.build/en/guides/styling/)
22+
- [Supporting multiple languages](https://docs.astro.build/en/guides/internationalization/)

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Astro Starter Kit: Basics
2+
3+
```sh
4+
npm create astro@latest -- --template basics
5+
```
6+
7+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
8+
9+
## 🚀 Project Structure
10+
11+
Inside of your Astro project, you'll see the following folders and files:
12+
13+
```text
14+
/
15+
├── public/
16+
│ └── favicon.svg
17+
├── src
18+
│   ├── assets
19+
│   │   └── astro.svg
20+
│   ├── components
21+
│   │   └── Welcome.astro
22+
│   ├── layouts
23+
│   │   └── Layout.astro
24+
│   └── pages
25+
│   └── index.astro
26+
└── package.json
27+
```
28+
29+
To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).
30+
31+
## 🧞 Commands
32+
33+
All commands are run from the root of the project, from a terminal:
34+
35+
| Command | Action |
36+
| :------------------------ | :----------------------------------------------- |
37+
| `npm install` | Installs dependencies |
38+
| `npm run dev` | Starts local dev server at `localhost:4321` |
39+
| `npm run build` | Build your production site to `./dist/` |
40+
| `npm run preview` | Preview your build locally, before deploying |
41+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
42+
| `npm run astro -- --help` | Get help using the Astro CLI |
43+
44+
## 👀 Want to learn more?
45+
46+
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

astro.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
4+
// https://astro.build/config
5+
export default defineConfig({
6+
site: 'https://SagaSmithAI.github.io',
7+
});

0 commit comments

Comments
 (0)