From 90dc503d5907e33f6ef49f57c128d2cc33f0a6f1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 2 Apr 2024 13:06:39 +0100 Subject: [PATCH] docs: use new `nuxi module add` command in installation --- README.md | 4 ++-- .../1.getting-started/1.quick-start.md | 12 +++--------- docs/content/1.index.md | 2 +- docs/content/2.advanced/3.docsearch.md | 19 +++---------------- 4 files changed, 9 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index b9ae512..c247b3f 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ ## Setup ```sh -yarn add @nuxtjs/algolia # yarn -npm i @nuxtjs/algolia # npm +npx nuxi module add algolia +npx nuxi module add algolia ``` ## Basic usage diff --git a/docs/content/1.getting-started/1.quick-start.md b/docs/content/1.getting-started/1.quick-start.md index 81e17b8..fef8196 100644 --- a/docs/content/1.getting-started/1.quick-start.md +++ b/docs/content/1.getting-started/1.quick-start.md @@ -6,15 +6,9 @@ description: '' ## Setup 1. **Install Algolia module** - -::code-group - ```bash [Yarn] - yarn add @nuxtjs/algolia - ``` - ```bash [NPM] - npm install @nuxtjs/algolia --save - ``` -:: +```bash +npx nuxi module add algolia +``` 2. **Enable the module in your Nuxt configuration** diff --git a/docs/content/1.index.md b/docs/content/1.index.md index 7665383..8394b74 100644 --- a/docs/content/1.index.md +++ b/docs/content/1.index.md @@ -13,7 +13,7 @@ cta: secondary: - Star on GitHub → - https://github.com/nuxt-modules/algolia -snippet: yarn add @nuxtjs/algolia +snippet: npx nuxi module add algolia --- #title diff --git a/docs/content/2.advanced/3.docsearch.md b/docs/content/2.advanced/3.docsearch.md index 00c222e..58ba0a6 100644 --- a/docs/content/2.advanced/3.docsearch.md +++ b/docs/content/2.advanced/3.docsearch.md @@ -12,22 +12,9 @@ Websites like [nuxtjs.org](https://nuxtjs.org), [vuejs.org](https://vuejs.org) u ## Installation As DocSearch is an additional feature for @nuxt-modules/algolia, it needs two additional dependencies: - -::code-group - - ```bash [Yarn] - yarn add @docsearch/js @docsearch/css - ``` - - ```bash [NPM] - npm install @docsearch/js @docsearch/css - ``` - - ```bash [PNPM] - pnpm add @docsearch/js @docsearch/css - ``` - -:: +```bash +npx nuxi module add algolia +``` ## Configuration