-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
251 lines (249 loc) · 4.92 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
// site: "http://localhost:4321",
site: "https://docs.mkdirs.com",
integrations: [
sitemap(),
starlight({
title: "Mkdirs",
favicon: "./favicon.ico",
social: {
github: "https://github.com/MkdirsHQ",
twitter: "https://x.com/javay_hu",
youtube: "https://www.youtube.com/@MkdirsHQ",
},
logo: {
src: "./src/assets/logo-rounded.png",
alt: "Mkdirs Logo",
},
// https://starlight.astro.build/guides/i18n/#use-a-root-locale
defaultLocale: "root",
locales: {
root: {
label: "English",
lang: "en",
},
"zh-cn": {
label: "简体中文",
lang: "zh-CN",
},
},
components: {
Head: './src/components/Head.astro',
},
sidebar: [
{
label: "Introduction",
translations: {
"zh-CN": "模板介绍"
},
slug: "index",
},
{
label: "FAQ",
translations: {
"zh-CN": "常见问题"
},
slug: "faq",
},
{
label: "Prerequisites",
translations: {
"zh-CN": "前提条件"
},
slug: "prerequisites",
},
{
label: "Installation",
translations: {
"zh-CN": "安装部署"
},
slug: "installation",
},
{
label: "Configuration",
translations: {
"zh-CN": "配置环境"
},
items: [
{
label: "Sanity",
translations: {
"zh-CN": "数据服务 - Sanity"
},
slug: "configuration/sanity"
},
{
label: "Resend",
translations: {
"zh-CN": "邮件服务 - Resend"
},
slug: "configuration/resend"
},
{
label: "Stripe",
translations: {
"zh-CN": "支付服务 - Stripe"
},
slug: "configuration/stripe"
},
{
label: "Auth",
translations: {
"zh-CN": "认证服务 - Auth"
},
slug: "configuration/auth"
},
{
label: "Analytics",
translations: {
"zh-CN": "数据分析 - Analytics"
},
slug: "configuration/analytics"
},
{
label: "AI",
translations: {
"zh-CN": "AI 模型 - AI"
},
slug: "configuration/ai"
},
],
},
{
label: "Deployment",
translations: {
"zh-CN": "部署上线"
},
items: [
{
label: "Vercel",
translations: {
"zh-CN": "部署到 Vercel"
},
slug: "deployment/vercel"
},
{
label: "Docker",
translations: {
"zh-CN": "Docker 自部署"
},
slug: "deployment/docker"
},
{
label: "Dokploy",
translations: {
"zh-CN": "部署到 Dokploy"
},
slug: "deployment/dokploy"
},
],
},
{
label: "Customization",
translations: {
"zh-CN": "自定义"
},
items: [
{
label: "Customize Information",
translations: {
"zh-CN": "自定义网站信息"
},
slug: "customization/information"
},
{
label: "Customize Logo",
translations: {
"zh-CN": "自定义 Logo"
},
slug: "customization/logo"
},
{
label: "Customize Font",
translations: {
"zh-CN": "自定义字体"
},
slug: "customization/font"
},
{
label: "Customize Theme",
translations: {
"zh-CN": "自定义主题"
},
slug: "customization/theme"
},
{
label: "Customize Card",
translations: {
"zh-CN": "自定义卡片样式"
},
slug: "customization/card"
},
{
label: "Customize Category",
translations: {
"zh-CN": "自定义分类"
},
slug: "customization/category"
},
{
label: "Customize Email",
translations: {
"zh-CN": "自定义邮件"
},
slug: "customization/email"
},
{
label: "Customize Page",
translations: {
"zh-CN": "自定义页面"
},
slug: "customization/custom-page"
},
],
},
{
label: "Guide",
translations: {
"zh-CN": "使用指南"
},
items: [
{
label: "Development",
translations: {
"zh-CN": "开发相关"
},
slug: "guide/develop"
},
{
label: "Submission",
translations: {
"zh-CN": "提交数据"
},
slug: "guide/submission"
},
{
label: "Sponsor Ads",
translations: {
"zh-CN": "赞助广告"
},
slug: "guide/sponsor-ads"
},
{
label: "Sanity",
translations: {
"zh-CN": "Sanity 相关"
},
slug: "guide/sanity"
},
],
},
]
}),
],
});