From d44e91d0731d9baf45b7bf858484e2c685454244 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 13:05:04 +0100 Subject: [PATCH] docs: use new `nuxi module add` command in installation --- docs/content/1.get-started/1.installation.md | 15 ++------------- .../7.v1/1.getting-started/2.installation.md | 11 ++--------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/docs/content/1.get-started/1.installation.md b/docs/content/1.get-started/1.installation.md index dd66ceb81..1bd06e762 100644 --- a/docs/content/1.get-started/1.installation.md +++ b/docs/content/1.get-started/1.installation.md @@ -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] diff --git a/docs/content/7.v1/1.getting-started/2.installation.md b/docs/content/7.v1/1.getting-started/2.installation.md index 633e477ef..6c357c3ca 100644 --- a/docs/content/7.v1/1.getting-started/2.installation.md +++ b/docs/content/7.v1/1.getting-started/2.installation.md @@ -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`: