-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
97 lines (96 loc) · 2.76 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
// @ts-check
import {
defineConfig,
} from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightSidebarTopics from 'starlight-sidebar-topics';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'LearnShare',
social: {
github: 'https://github.com/LearnShare/blog',
},
pagination: false,
plugins: [
starlightSidebarTopics([
{
label: '文章',
link: '/posts',
icon: 'open-book',
items: [
{
label: '全部文章',
autogenerate: {
directory: 'posts'
},
},
],
},
{
label: '专题',
link: '/topics',
icon: 'list-format',
items: [
{
label: 'Design System',
collapsed: true,
items: [
{
label: '概述',
link: '/topics/design-system',
},
{
label: '主题',
collapsed: true,
items: [
{
label: '尺寸',
link: '/topics/design-system/topics/size',
},
{
label: '颜色',
link: '/topics/design-system/topics/color',
},
{
label: '层级',
link: '/topics/design-system/topics/layer',
},
{
label: '状态',
link: '/topics/design-system/topics/status',
},
{
label: '布局',
link: '/topics/design-system/topics/layout',
},
{
label: '文字',
link: '/topics/design-system/topics/font',
},
{
label: '动画',
link: '/topics/design-system/topics/anim',
},
],
},
{
label: '组件',
collapsed: true,
items: [
{
label: '按钮',
link: '/topics/design-system/components/button',
},
],
},
],
},
],
},
]),
],
}),
],
});