From cb35efabf1c3179351ed2c9ea394c0ab598181f5 Mon Sep 17 00:00:00 2001 From: Caleb Ukle Date: Thu, 24 Aug 2023 06:31:46 -0500 Subject: [PATCH] docs(nextjs): fix formatting issue with install command (#18800) --- .../generated/packages/next/documents/overview.md | 15 +++++++++++---- docs/shared/packages/next/plugin-overview.md | 15 +++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/docs/generated/packages/next/documents/overview.md b/docs/generated/packages/next/documents/overview.md index a5c8681e00892..f4b2c45612633 100644 --- a/docs/generated/packages/next/documents/overview.md +++ b/docs/generated/packages/next/documents/overview.md @@ -12,16 +12,23 @@ To create a new Nx workspace with Next.js, run `npx create-nx-workspace@latest - To add Next.js to an existing Nx workspace, install the `@nx/next` package. Make sure to install the version that matches your `@nx/workspace` version. +{% tabs %} +{% tab label="npm" %} + ```shell -#yarn -yarn add --dev @nx/next +npm install --save-dev @nx/next ``` +{% /tab %} +{% tab label="yarn" %} + ```shell -#npm -npm install --save-dev @nx/next +yarn add --dev @nx/next ``` +{% /tab %} +{% /tabs %} + ### Creating Applications You can add a new application with the following: diff --git a/docs/shared/packages/next/plugin-overview.md b/docs/shared/packages/next/plugin-overview.md index a5c8681e00892..f4b2c45612633 100644 --- a/docs/shared/packages/next/plugin-overview.md +++ b/docs/shared/packages/next/plugin-overview.md @@ -12,16 +12,23 @@ To create a new Nx workspace with Next.js, run `npx create-nx-workspace@latest - To add Next.js to an existing Nx workspace, install the `@nx/next` package. Make sure to install the version that matches your `@nx/workspace` version. +{% tabs %} +{% tab label="npm" %} + ```shell -#yarn -yarn add --dev @nx/next +npm install --save-dev @nx/next ``` +{% /tab %} +{% tab label="yarn" %} + ```shell -#npm -npm install --save-dev @nx/next +yarn add --dev @nx/next ``` +{% /tab %} +{% /tabs %} + ### Creating Applications You can add a new application with the following: