Skip to content

Commit 9a58f0f

Browse files
astrobot-houstonKingpython123
authored andcommitted
"Initial commit from Astro"
0 parents  commit 9a58f0f

39 files changed

Lines changed: 7688 additions & 0 deletions

‎.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+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
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", "unifiedjs.vscode-mdx"],
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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Astro Starter Kit: Blog
2+
3+
```sh
4+
npm create astro@latest -- --template blog
5+
```
6+
7+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
8+
9+
Features:
10+
11+
- ✅ Minimal styling (make it your own!)
12+
- ✅ 100/100 Lighthouse performance
13+
- ✅ SEO-friendly with canonical URLs and Open Graph data
14+
- ✅ Sitemap support
15+
- ✅ RSS Feed support
16+
- ✅ Markdown & MDX support
17+
18+
## 🚀 Project Structure
19+
20+
Inside of your Astro project, you'll see the following folders and files:
21+
22+
```text
23+
├── public/
24+
├── src/
25+
│   ├── assets/
26+
│   ├── components/
27+
│   ├── content/
28+
│   ├── layouts/
29+
│   └── pages/
30+
├── astro.config.mjs
31+
├── README.md
32+
├── package.json
33+
└── tsconfig.json
34+
```
35+
36+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
37+
38+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
39+
40+
The `src/content/` directory contains "collections" of related Markdown and MDX documents. Use `getCollection()` to retrieve posts from `src/content/blog/`, and type-check your frontmatter using an optional schema. See [Astro's Content Collections docs](https://docs.astro.build/en/guides/content-collections/) to learn more.
41+
42+
Any static assets, like images, can be placed in the `public/` directory.
43+
44+
## 🧞 Commands
45+
46+
All commands are run from the root of the project, from a terminal:
47+
48+
| Command | Action |
49+
| :------------------------ | :----------------------------------------------- |
50+
| `npm install` | Installs dependencies |
51+
| `npm run dev` | Starts local dev server at `localhost:4321` |
52+
| `npm run build` | Build your production site to `./dist/` |
53+
| `npm run preview` | Preview your build locally, before deploying |
54+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
55+
| `npm run astro -- --help` | Get help using the Astro CLI |
56+
57+
## 👀 Want to learn more?
58+
59+
Check out [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
60+
61+
## Credit
62+
63+
This theme is based off of the lovely [Bear Blog](https://github.com/HermanMartinus/bearblog/).

‎astro.config.mjs‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// @ts-check
2+
3+
import mdx from '@astrojs/mdx';
4+
import sitemap from '@astrojs/sitemap';
5+
import { defineConfig, fontProviders } from 'astro/config';
6+
7+
// https://astro.build/config
8+
export default defineConfig({
9+
site: 'https://example.com',
10+
integrations: [mdx(), sitemap()],
11+
fonts: [
12+
{
13+
provider: fontProviders.local(),
14+
name: 'Atkinson',
15+
cssVariable: '--font-atkinson',
16+
fallbacks: ['sans-serif'],
17+
options: {
18+
variants: [
19+
{
20+
src: ['./src/assets/fonts/atkinson-regular.woff'],
21+
weight: 400,
22+
style: 'normal',
23+
display: 'swap',
24+
},
25+
{
26+
src: ['./src/assets/fonts/atkinson-bold.woff'],
27+
weight: 700,
28+
style: 'normal',
29+
display: 'swap',
30+
},
31+
],
32+
},
33+
},
34+
],
35+
});

0 commit comments

Comments
 (0)