Skip to content

Commit 7099819

Browse files
authored
docs: use new nuxi module add command in installation (#189)
1 parent ed04377 commit 7099819

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

docs/content/0.index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cta:
1212
secondary:
1313
- Star on GitHub →
1414
- https://github.com/nuxt-modules/google-fonts
15-
snippet: npm i -D @nuxtjs/google-fonts
15+
snippet: npx nuxi@latest module add google-fonts
1616
---
1717

1818
#title

docs/content/1.getting-started/1.setup.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,10 @@ Using Google Fonts in your Nuxt project
55
## Installation
66

77
1. Install `@nuxtjs/google-fonts` dependency to your project:
8-
9-
::code-group
10-
11-
```bash [yarn]
12-
yarn add -D @nuxtjs/google-fonts
13-
```
14-
15-
```bash [npm]
16-
npm install -D @nuxtjs/google-fonts
8+
```bash
9+
npx nuxi@latest module add google-fonts
1710
```
1811

19-
```sh [pnpm]
20-
pnpm i -D @nuxtjs/google-fonts
21-
```
22-
23-
::
24-
2512
2. Add it to your `modules` section in your `nuxt.config`:
2613

2714
::code-group

0 commit comments

Comments
 (0)