Skip to content

Commit 13ea794

Browse files
authored
docs: include outline and code-group (#14082)
1 parent 6632018 commit 13ea794

File tree

6 files changed

+26
-8
lines changed

6 files changed

+26
-8
lines changed

docs/.vitepress/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ export default defineConfig({
164164
text: 'Changelog',
165165
link: 'https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md',
166166
},
167+
{
168+
text: 'Contributing',
169+
link: 'https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md',
170+
},
167171
],
168172
},
169173
],

docs/guide/assets.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
outline: [2, 3]
3+
---
4+
15
# Static Asset Handling
26

37
- Related: [Public Base Path](./build#public-base-path)

docs/guide/cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
outline: [2, 3]
3+
---
4+
15
# Command Line Interface
26

37
## Dev server

docs/guide/dep-pre-bundling.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
outline: [2, 3]
3+
---
4+
15
# Dependency Pre-Bundling
26

37
When you run `vite` for the first time, Vite prebundles your project dependencies before loading your site locally. It is done automatically and transparently by default.

docs/guide/index.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,22 @@ The supported template presets are:
4545
Vite requires [Node.js](https://nodejs.org/en/) version 14.18+, 16+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
4646
:::
4747

48-
With NPM:
48+
::: code-group
4949

50-
```bash
50+
```bash [NPM]
5151
$ npm create vite@latest
5252
```
5353

54-
With Yarn:
55-
56-
```bash
54+
```bash [Yarn]
5755
$ yarn create vite
5856
```
5957

60-
With PNPM:
61-
62-
```bash
58+
```bash [PNPM]
6359
$ pnpm create vite
6460
```
6561

62+
:::
63+
6664
Then follow the prompts!
6765

6866
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Vue project, run:

docs/guide/why.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
outline: [2, 3]
3+
---
4+
15
# Why Vite
26

37
## The Problems

0 commit comments

Comments
 (0)