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