-
Notifications
You must be signed in to change notification settings - Fork 13
/
astro.config.mjs
124 lines (122 loc) · 3.16 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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "Indie dev",
social: {
github: "https://github.com/withastro/starlight",
},
sidebar: [
{ label: "React自学路径", link: "/react" },
{
label: "场景",
items: [
// Each item here is one entry in the navigation menu.
{
label: "写文档",
link: "/scenes/docs/",
},
{
label: "开发站点",
link: "/scenes/website/",
},
{
label: "建博客",
link: "/scenes/blog/",
},
{
label: "加订单、支付",
link: "/scenes/order/",
},
{
label: "集成服务",
link: "/scenes/service/",
},
{
label: "开发完整saas",
link: "/scenes/saas/",
},
{
label: "海外支付",
link: "/scenes/stripe/",
},
],
},
{
label: "学习步骤",
items: [
// Each item here is one entry in the navigation menu.
{
label: "1、建站",
link: "/guides/site/",
},
{
label: "2、学习写组件和页面",
link: "/guides/component/",
},
{
label: "3、学习写文档",
link: "/guides/doc/",
},
{
label: "4、学习写博客",
link: "/guides/blog/",
},
{
label: "5、学习其他集成场景",
link: "/guides/intergration/",
},
],
},
{
label: "专项学习",
items: [
// Each item here is one entry in the navigation menu.
{
label: "1、Node.js 写API",
link: "/guides/node/",
},
{
label: "2、Astro 建站",
link: "/guides/astro/",
},
{
label: "3、React 写组件和页面",
link: "/guides/react/",
},
{
label: "4、Tailwind CSS",
link: "/guides/tailwind/",
},
{
label: "5、Mdx 写文档",
link: "/guides/mdx/",
},
{
label: "6、Next.js 全栈",
link: "/guides/example/",
},
{
label: "7、Remix.js SSR",
link: "/guides/example/",
},
{
label: "8、Shadcn/ui 开箱即用组件库",
link: "/guides/example/",
},
],
},
{
label: "Reference",
autogenerate: {
directory: "reference",
},
},
],
}),
react(),
],
});