Skip to content

Commit

Permalink
docs: include outline and code-group (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-es authored Aug 21, 2023
1 parent 3493b2a commit f869576
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 @@ -171,6 +171,10 @@ export default defineConfig({
text: '変更履歴',
link: 'https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md',
},
{
text: '貢献ガイド',
link: 'https://github.com/vitejs/docs-ja/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]
---

# 静的アセットの取り扱い

- 関連: [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]
---

# コマンドラインインターフェイス

## 開発サーバ
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]
---

# 依存関係の事前バンドル

初めて、`vite` を実行すると、Vite は、あなたのサイトをローカルで読み込む前に、プロジェクトの依存関係を事前バンドルします。これはデフォルトで自動的に、かつ透過的に行われます。
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 @@ Vite は完全な型サポートのある [Plugin API](./api-plugin) と [JavaSc
Vite は [Node.js](https://nodejs.org/en/) 14.18+、16+ のバージョンが必要です。ただし、一部のテンプレートではそれ以上のバージョンの Node.js を必要としますので、パッケージマネージャが警告を出した場合はアップグレードしてください。
:::

NPM を使う場合:
::: code-group

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

Yarn を使う場合:

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

PNPM を使う場合:

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

:::

あとは画面表示に従ってください!

プロジェクト名や使用するテンプレートは、追加のコマンドラインオプションによって直接指定することもできます。例えば Vite + Vue のプロジェクトを生成するには以下のコマンドを実行します:
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]
---

# なぜ Vite なのか

## 問題点
Expand Down

0 comments on commit f869576

Please sign in to comment.