Skip to content

Commit e0cb950

Browse files
committed
docs: move prerequisites into a summary
1 parent 9036142 commit e0cb950

1 file changed

Lines changed: 20 additions & 25 deletions

File tree

docs/1.getting-started/2.installation.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,29 @@ Start with one of our starters and themes directly by opening [nuxt.new](https:/
1717

1818
:button-link[Discover nuxt.new]{href="https://nuxt.new" blank}
1919

20-
## Prerequisites
21-
22-
Before getting started, please make sure you have installed the recommended setup.
23-
24-
* **Node.js**<sup>*</sup> (latest LTS version) 👉 [[Download](https://nodejs.org/en/download/)]
25-
* **Visual Studio Code** 👉 [[Download](https://code.visualstudio.com/)]
26-
* **Volar Extension** 👉 [[Download](https://marketplace.visualstudio.com/items?itemName=Vue.volar)]
27-
* Either enable [**Take Over Mode**](https://vuejs.org/guide/typescript/overview.html#volar-takeover-mode) (recommended)
28-
* ... or add **TypeScript Vue Plugin (Volar)** 👉 [[Download](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin)]
29-
30-
<sup>*</sup> If you already have Node.js installed, check with `node --version` above 16.11.
31-
32-
::alert{type=info}
33-
34-
If you have enabled **Take Over Mode** or installed the **TypeScript Vue Plugin (Volar)**, you can disable generating the shim for `*.vue` files in your `nuxt.config` file:
35-
36-
```js
37-
export default defineNuxtConfig({
38-
typescript: {
39-
shim: false
40-
}
41-
})
42-
```
20+
## New Project
4321

22+
::alert
23+
::details
24+
:summary[Before getting started, please make sure you have installed the recommended setup:]
25+
* **Node.js**<sup>*</sup> (latest LTS version or above 16.11) 👉 [[Download](https://nodejs.org/en/download/)]
26+
* **Visual Studio Code** 👉 [[Download](https://code.visualstudio.com/)]
27+
* **Volar Extension** 👉 [[Download](https://marketplace.visualstudio.com/items?itemName=Vue.volar)]
28+
* Either enable [**Take Over Mode**](https://vuejs.org/guide/typescript/overview.html#volar-takeover-mode) (recommended)
29+
* ... or add **TypeScript Vue Plugin (Volar)** 👉 [[Download](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin)]
30+
31+
If you have enabled **Take Over Mode** or installed the **TypeScript Vue Plugin (Volar)**, you can disable generating the shim for `*.vue` files in your `nuxt.config` file:
32+
33+
```ts [nuxt.config.ts]
34+
export default defineNuxtConfig({
35+
typescript: {
36+
shim: false
37+
}
38+
})
39+
```
40+
::
4441
::
4542

46-
## New Project
47-
4843
Open a terminal (if you're using [Visual Studio Code](https://code.visualstudio.com/), you can open an [integrated terminal](https://code.visualstudio.com/docs/editor/integrated-terminal)) and use the following command to create a new starter project:
4944

5045
::code-group

0 commit comments

Comments
 (0)