-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathastro.config.mjs
70 lines (69 loc) · 1.53 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
import {
defineConfig,
} from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'learn-VRA',
social: {
github: 'https://github.com/LearnShare/learn-VRA',
},
sidebar: [
{
label: '开始',
collapsed: true,
autogenerate: {
directory: 'start',
},
},
{
label: '代码风格',
collapsed: true,
autogenerate: {
directory: 'coding-style-guides',
},
},
{
label: '主题',
collapsed: true,
items: [
{
label: '1. Hello World',
link: '/topic/hello-world/',
},
{
label: '2. 应用配置和启动',
link: '/topic/app/',
},
{
label: '3. 组件',
autogenerate: {
directory: '/topic/component/',
},
},
{
label: '4. ref 和 DOM',
link: '/topic/ref/',
},
{
label: '5. 跨组件数据传递',
link: '/topic/data-transfer/',
},
],
},
{
label: '库和框架',
collapsed: true,
items: [
{
label: 'Vue',
link: '/vue',
},
],
},
],
}),
],
});