Skip to content

Commit 92f3af7

Browse files
authored
Initial commit
0 parents  commit 92f3af7

17 files changed

+7494
-0
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

.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+
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# EXAMPLE-SITE-TEMPLATE
2+
3+
这是一个基于 [Astro](https://astro.build)[Starlight](https://starlight.astro.build) 的模板,用于快速搭建示例站点。

astro.config.mjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// @ts-check
2+
import { defineConfig } from "astro/config";
3+
import starlight from "@astrojs/starlight";
4+
5+
import tailwind from "@astrojs/tailwind";
6+
7+
// https://astro.build/config
8+
export default defineConfig({
9+
integrations: [
10+
starlight({
11+
title: "Example Site Template",
12+
social: {
13+
github: "https://github.com/ChangeSuger/example-site-template",
14+
},
15+
defaultLocale: "zh-CN",
16+
locales: {
17+
"zh-CN": {
18+
label: "简体中文",
19+
lang: "zh-CN",
20+
},
21+
},
22+
sidebar: [],
23+
customCss: ['./src/tailwind.css'],
24+
}),
25+
tailwind({ applyBaseStyles: false }),
26+
],
27+
});

0 commit comments

Comments
 (0)