Skip to content

Commit

Permalink
docs: use new nuxi module add command in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 2, 2024
1 parent 2f8906b commit 90dc503
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 3 additions & 9 deletions docs/content/1.getting-started/1.quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 3 additions & 16 deletions docs/content/2.advanced/3.docsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 90dc503

Please sign in to comment.