@@ -2,25 +2,143 @@ import { sidebar } from "vuepress-theme-hope";
2
2
3
3
export const zhSidebar = sidebar ( {
4
4
"/zh/" : [
5
- "" ,
6
- "portfolio" ,
7
5
{
8
- text : "案例" ,
9
- icon : "laptop-code" ,
10
- prefix : "demo/" ,
11
- link : "demo/" ,
12
- children : "structure" ,
6
+ text : "快速开始" ,
7
+ icon : "lightbulb" ,
8
+ prefix : "guide/" ,
9
+ collapsible : false ,
10
+ link : "guide/" ,
11
+ children : [ "install" , "usage" ] ,
13
12
} ,
14
13
{
15
- text : "文档" ,
16
- icon : "book" ,
17
- prefix : "guide/" ,
18
- children : "structure" ,
14
+ text : "语法" ,
15
+ icon : "code" ,
16
+ prefix : "grammar/" ,
17
+ link : "grammar/" ,
18
+ collapsible : true ,
19
+ children : [
20
+ "spec" ,
21
+ "pkg" ,
22
+ "type" ,
23
+ "cmd" ,
24
+ "expr" ,
25
+ "stmt" ,
26
+ "flow" ,
27
+ "func" ,
28
+ "trait" ,
29
+ "generics" ,
30
+ "comptime" ,
31
+ "annotation" ,
32
+ "unsafe" ,
33
+ "async" ,
34
+ "test" ,
35
+ ] ,
36
+ } ,
37
+ {
38
+ text : "标准库" ,
39
+ prefix : "libs/" ,
40
+ icon : "fas fa-coins" ,
41
+ link : "libs/" ,
42
+ collapsible : true ,
43
+ children : [
44
+ "builtin" ,
45
+ "time" ,
46
+ "math" ,
47
+ "fs" ,
48
+ "assert" ,
49
+ "reflect" ,
50
+ "bash" ,
51
+ "powershell" ,
52
+ "batch" ,
53
+ "vbs" ,
54
+ "amber" ,
55
+ ] ,
56
+ } ,
57
+ {
58
+ text : "工具链" ,
59
+ icon : "hammer" ,
60
+ prefix : "toolchain/" ,
61
+ collapsible : false ,
62
+ link : "toolchain/" ,
63
+ children : [ "compiler" , "pm" , "editor_plugin" , "tui" , "devops" ]
64
+ } ,
65
+ {
66
+ text : "设计模式" ,
67
+ icon : "compass-drafting" ,
68
+ prefix : "design/" ,
69
+ collapsible : true ,
70
+ link : "design/" ,
71
+ children : [ ]
72
+ } ,
73
+ {
74
+ text : "反馈" ,
75
+ icon : "rss" ,
76
+ link : "https://ecosystem.vuejs.press/plugins/markdown/revealjs/demo.html" ,
77
+ } ,
78
+ ] ,
79
+ "/zh/blueprints/" : [
80
+ "architecture" ,
81
+ "hcr" ,
82
+ {
83
+ text : "Bash" ,
84
+ icon : "fa-brands fa-linux" ,
85
+ prefix : "/zh/blueprints/bash/" ,
86
+ collapsible : true ,
87
+ children : [
88
+ "type" ,
89
+ "expr" ,
90
+ "branch" ,
91
+ "loop" ,
92
+ "func" ,
93
+ ]
94
+ } ,
95
+ {
96
+ text : "Powershell" ,
97
+ icon : "fa-brands fa-windows" ,
98
+ prefix : "/zh/blueprints/powershell/" ,
99
+ collapsible : true ,
100
+ children : [ ]
19
101
} ,
20
102
{
21
- text : "幻灯片" ,
22
- icon : "person-chalkboard" ,
23
- link : "https://ecosystem.vuejs.press/zh/plugins/markdown/revealjs/demo.html" ,
103
+ text : "Batch" ,
104
+ icon : "fa-brands fa-windows" ,
105
+ prefix : "/zh/blueprints/batch/" ,
106
+ collapsible : true ,
107
+ children : [ "type" ]
108
+ } ,
109
+ {
110
+ text : "VBScript" ,
111
+ icon : "fa-solid fa-v" ,
112
+ prefix : "/zh/blueprints/vbs/" ,
113
+ collapsible : true ,
114
+ children : [ "branch" ]
115
+ } ,
116
+ {
117
+ text : "Amber" ,
118
+ icon : "fa-solid fa-diamond" ,
119
+ prefix : "/zh/blueprints/amber/" ,
120
+ collapsible : true ,
121
+ children : [
122
+ "type" ,
123
+ "expr" ,
124
+ "branch" ,
125
+ "loop" ,
126
+ "func" ,
127
+ ]
24
128
} ,
25
129
] ,
130
+ "/zh/demos" : "structure" ,
131
+ "/zh/others/" : [
132
+ {
133
+ text : "项目" ,
134
+ icon : "circle-info" ,
135
+ children : [
136
+ "faq" ,
137
+ "roadmap" ,
138
+ "changelog" ,
139
+ "contribution" ,
140
+ "license"
141
+ ]
142
+ }
143
+ ]
26
144
} ) ;
0 commit comments