From ac4ffaee2f12f2ab1b45a1b39863d06b157799e6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 13:58:34 +0100 Subject: [PATCH 1/3] docs: use new `nuxi module add` command in installation --- docs/content/2.setup.md | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/docs/content/2.setup.md b/docs/content/2.setup.md index c1143cac..4f7cba43 100644 --- a/docs/content/2.setup.md +++ b/docs/content/2.setup.md @@ -6,23 +6,10 @@ description: Learn how to setup strapi module in your Nuxt 3 application. ## Installation Add `@nuxtjs/strapi` dev dependency to your project: - -::code-group - -```bash [pnpm] -pnpm add @nuxtjs/strapi -``` - -```bash [yarn] -yarn add @nuxtjs/strapi +```bash +npx nuxi@latest module add strapi ``` -```bash [npm] -npm install @nuxtjs/strapi -``` - -:: - Then, add `@nuxtjs/strapi` to the [`modules`](https://nuxt.com/docs/api/configuration/nuxt-config#modules) section of your Nuxt configuration: ```ts [nuxt.config.ts] From a967dc95c6b1981b504b9decb39457a27a77f491 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 10 Apr 2024 17:19:29 +0200 Subject: [PATCH 2/3] Update docs/content/2.setup.md --- docs/content/2.setup.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/content/2.setup.md b/docs/content/2.setup.md index 4f7cba43..b40893f3 100644 --- a/docs/content/2.setup.md +++ b/docs/content/2.setup.md @@ -5,7 +5,8 @@ description: Learn how to setup strapi module in your Nuxt 3 application. ## Installation -Add `@nuxtjs/strapi` dev dependency to your project: +1. Add `@nuxtjs/strapi` module to your project: + ```bash npx nuxi@latest module add strapi ``` From 24bdfeba93807e05c0daa8c02930d52bdac85c58 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 10 Apr 2024 17:21:41 +0200 Subject: [PATCH 3/3] Update docs/content/2.setup.md --- docs/content/2.setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/2.setup.md b/docs/content/2.setup.md index b40893f3..2c73febf 100644 --- a/docs/content/2.setup.md +++ b/docs/content/2.setup.md @@ -11,7 +11,7 @@ description: Learn how to setup strapi module in your Nuxt 3 application. npx nuxi@latest module add strapi ``` -Then, add `@nuxtjs/strapi` to the [`modules`](https://nuxt.com/docs/api/configuration/nuxt-config#modules) section of your Nuxt configuration: +2. Add it to the `modules` section in your `nuxt.config.ts`: ```ts [nuxt.config.ts] export default defineNuxtConfig({