From 7099819c60b86c49f5284fccf65a90bccafaccf8 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 17 May 2024 14:11:11 -0500 Subject: [PATCH] docs: use new `nuxi module add` command in installation (#189) --- docs/content/0.index.md | 2 +- docs/content/1.getting-started/1.setup.md | 17 ++--------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/docs/content/0.index.md b/docs/content/0.index.md index 70c5442..8bf7a72 100644 --- a/docs/content/0.index.md +++ b/docs/content/0.index.md @@ -12,7 +12,7 @@ cta: secondary: - Star on GitHub → - https://github.com/nuxt-modules/google-fonts -snippet: npm i -D @nuxtjs/google-fonts +snippet: npx nuxi@latest module add google-fonts --- #title diff --git a/docs/content/1.getting-started/1.setup.md b/docs/content/1.getting-started/1.setup.md index 613bf21..470cb4c 100644 --- a/docs/content/1.getting-started/1.setup.md +++ b/docs/content/1.getting-started/1.setup.md @@ -5,23 +5,10 @@ Using Google Fonts in your Nuxt project ## Installation 1. Install `@nuxtjs/google-fonts` dependency to your project: - -::code-group - -```bash [yarn] -yarn add -D @nuxtjs/google-fonts -``` - -```bash [npm] -npm install -D @nuxtjs/google-fonts +```bash +npx nuxi@latest module add google-fonts ``` -```sh [pnpm] -pnpm i -D @nuxtjs/google-fonts -``` - -:: - 2. Add it to your `modules` section in your `nuxt.config`: ::code-group