-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvuepress.config.ts
76 lines (75 loc) · 1.9 KB
/
vuepress.config.ts
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
import { defineUserConfig, defaultTheme } from "vuepress";
import { registerComponentsPlugin } from "@vuepress/plugin-register-components";
import { searchPlugin } from "@vuepress/plugin-search";
import { fileURLToPath } from "node:url";
export default defineUserConfig({
lang: "zh-CN",
title: "软件设计实践大作业",
base: "/project-doc/",
theme: defaultTheme({
navbar: [
{
text: "GitHub",
link: "https://github.com/pku-software/project-doc"
}
],
sidebar: [
{
text: "写在前面",
children: [
{
text: "项目概述",
link: "/",
},
"/preface/howto",
"/preface/prerequisites",
"/preface/facing-problem",
],
},
{
text: "开始实践",
children: [
"/levels/0",
"/levels/1",
"/levels/2",
"/levels/3",
"/levels/4",
"/levels/5",
"/levels/6",
"/levels/7",
"/levels/7p",
],
},
{
text: "附录",
children: [
"/appendix/why",
"/appendix/rjsj_test",
"/appendix/references",
{
text: "Lisp 入门教程",
link: "https://pku-software.github.io/lisp-tutorial/",
},
{
text: "Mini-Lisp 语言规范",
link: "https://pku-software.github.io/mini-lisp-spec/",
},
{
text: "Mini-Lisp 脚手架",
link: "https://pku-software.github.io/create-mini-lisp/",
},
],
},
],
}),
plugins: [
registerComponentsPlugin({
components: {
MiniLisp: fileURLToPath(
new URL("./components/MiniLisp.vue", import.meta.url).href
),
},
}),
// searchPlugin(),
],
});