File tree Expand file tree Collapse file tree 4 files changed +19
-19
lines changed
Expand file tree Collapse file tree 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
7171
7272You will be greeted with a few simple questions:
7373
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
9275
9376::: tip Vue as Peer Dependency
9477If 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 = () => {
3737}
3838
3939export async function init ( ) {
40- intro ( bold ( cyan ( ' Welcome to VitePress! ' ) ) )
40+ intro ( bold ( cyan ( 'Welcome to VitePress!' ) ) )
4141
4242 const options : ScaffoldOptions = await group (
4343 {
Original file line number Diff line number Diff line change @@ -43,4 +43,5 @@ function extractLang(info: string) {
4343 . replace ( / : ( n o - ) ? l i n e - n u m b e r s ( { | | $ ) .* / , '' )
4444 . replace ( / ( - v u e | { | ) .* $ / , '' )
4545 . replace ( / ^ v u e - h t m l $ / , 'template' )
46+ . replace ( / ^ a n s i $ / , '' )
4647}
You can’t perform that action at this time.
0 commit comments