Skip to content

Commit

Permalink
docs: use new nuxi module add command in installation (#2603)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 3, 2024
1 parent 9943c00 commit f753723
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
15 changes: 2 additions & 13 deletions docs/content/1.get-started/1.installation.md
Expand Up @@ -55,21 +55,10 @@ npm run dev
## Add to a project

You can add Nuxt Content at anytime during your Nuxt project development by installing the `@nuxt/content` module:

::code-group
```bash [pnpm]
pnpm add @nuxt/content
```

```bash [yarn]
yarn add @nuxt/content
```bash
npx nuxi@latest module add content
```

```bash [npm]
npm install @nuxt/content
```
::

Then, add `@nuxt/content` to the `modules` section of `nuxt.config.ts`:

```ts [nuxt.config.ts]
Expand Down
11 changes: 2 additions & 9 deletions docs/content/7.v1/1.getting-started/2.installation.md
Expand Up @@ -4,16 +4,9 @@ description: 'Install @nuxt/content in only two steps in your Nuxt project.'
---

Add `@nuxt/content` dependency to your project:

::code-group
```bash [Yarn]
yarn add @nuxt/content@^1
```

```bash [NPM]
npm install @nuxt/content@^1
```bash
npx nuxi@latest module add content
```
::

Then, add `@nuxt/content` to the `modules` section of `nuxt.config.js`:

Expand Down

0 comments on commit f753723

Please sign in to comment.