File tree 4 files changed +19
-19
lines changed
4 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -71,24 +71,7 @@ $ pnpm dlx vitepress init
71
71
72
72
You will be greeted with a few simple questions:
73
73
74
- ``` ansi
75
- [0;98m┌[0m [0;36;1m Welcome to VitePress![0m
76
- [0;98m│[0m
77
- [0;32m◇[0m Where should VitePress initialize the config?
78
- [0;98m│[0m [0;2m./docs[0m
79
- [0;98m│[0m
80
- [0;32m◇[0m Site title:
81
- [0;98m│[0m [0;2mMy Awesome Project[0m
82
- [0;98m│[0m
83
- [0;32m◇[0m Site description:
84
- [0;98m│[0m [0;2mA VitePress Site[0m
85
- [0;98m│[0m
86
- [0;36m◆[0m Theme:
87
- [0;36m│[0m [0;32m●[0m Default Theme [0;2m(Out of the box, good-looking docs)[0m
88
- [0;36m│[0m [0;2m○[0m [0;2mDefault Theme + Customization[0m
89
- [0;36m│[0m [0;2m○[0m [0;2mCustom Theme[0m
90
- [0;36m└
91
- ```
74
+ <<< @/snippets/init.ansi
92
75
93
76
::: tip Vue as Peer Dependency
94
77
If you intend to perform customization that uses Vue components or APIs, you should also explicitly install ` vue ` as a peer dependency.
Original file line number Diff line number Diff line change
1
+ [0;90m┌[0m [0;36;1mWelcome to VitePress![0m[0m
2
+ [0;90m│[0m[0m
3
+ [0;32m◇[0m Where should VitePress initialize the config?[0m
4
+ [0;90m│[0m [0;2m./docs[0m[0m
5
+ [0;90m│[0m[0m
6
+ [0;32m◇[0m Site title:[0m
7
+ [0;90m│[0m [0;2mMy Awesome Project[0m[0m
8
+ [0;90m│[0m[0m
9
+ [0;32m◇[0m Site description:[0m
10
+ [0;90m│[0m [0;2mA VitePress Site[0m[0m
11
+ [0;90m│[0m[0m
12
+ [0;36m◆[0m Theme:[0m
13
+ [0;36m│[0m [0;32m●[0m Default Theme [0;2m(Out of the box, good-looking docs)[0m[0m
14
+ [0;36m│[0m [0;2m○[0m [0;2mDefault Theme + Customization[0m[0m
15
+ [0;36m│[0m [0;2m○[0m [0;2mCustom Theme[0m[0m
16
+ [0;36m└[0m
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const getPackageManger = () => {
37
37
}
38
38
39
39
export async function init ( ) {
40
- intro ( bold ( cyan ( ' Welcome to VitePress! ' ) ) )
40
+ intro ( bold ( cyan ( 'Welcome to VitePress!' ) ) )
41
41
42
42
const options : ScaffoldOptions = await group (
43
43
{
Original file line number Diff line number Diff line change @@ -43,4 +43,5 @@ function extractLang(info: string) {
43
43
. replace ( / : ( n o - ) ? l i n e - n u m b e r s ( { | | $ ) .* / , '' )
44
44
. replace ( / ( - v u e | { | ) .* $ / , '' )
45
45
. replace ( / ^ v u e - h t m l $ / , 'template' )
46
+ . replace ( / ^ a n s i $ / , '' )
46
47
}
You can’t perform that action at this time.
0 commit comments