Skip to content

Commit

Permalink
docs: include outline and code-group (#14082)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Aug 14, 2023
1 parent b3c4919 commit 9b4dc24
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ export default defineConfig({
text: 'Changelog',
link: 'https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md',
},
{
text: 'Contributing',
link: 'https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md',
},
],
},
],
Expand Down
4 changes: 4 additions & 0 deletions guide/assets.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
outline: [2, 3]
---

# Static Asset Handling

- Related: [Public Base Path](./build#public-base-path)
Expand Down
4 changes: 4 additions & 0 deletions guide/cli.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
outline: [2, 3]
---

# Command Line Interface

## Dev server
Expand Down
4 changes: 4 additions & 0 deletions guide/dep-pre-bundling.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
outline: [2, 3]
---

# Dependency Pre-Bundling

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.
Expand Down
14 changes: 6 additions & 8 deletions guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,22 @@ The supported template presets are:
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.
:::

With NPM:
::: code-group

```bash
```bash [NPM]
$ npm create vite@latest
```

With Yarn:

```bash
```bash [Yarn]
$ yarn create vite
```

With PNPM:

```bash
```bash [PNPM]
$ pnpm create vite
```

:::

Then follow the prompts!

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:
Expand Down
4 changes: 4 additions & 0 deletions guide/why.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
outline: [2, 3]
---

# Why Vite

## The Problems
Expand Down

0 comments on commit 9b4dc24

Please sign in to comment.