From 01cad20b5abf2c8174f967d1d15480ce509903b2 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Thu, 5 Dec 2024 12:55:59 +0000 Subject: [PATCH] docs: Link initialization docs together (#10740) --- website/docs/installation.mdx | 2 +- website/docs/typescript-support.mdx | 2 +- website/docusaurus.config.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/website/docs/installation.mdx b/website/docs/installation.mdx index 1da802db425d..1d4ca017b983 100644 --- a/website/docs/installation.mdx +++ b/website/docs/installation.mdx @@ -26,7 +26,7 @@ Use **[docusaurus.new](https://docusaurus.new)** to test Docusaurus immediately ## Scaffold project website {#scaffold-project-website} -The easiest way to install Docusaurus is to use the command line tool that helps you scaffold a skeleton Docusaurus website. You can run this command anywhere in a new empty repository or within an existing repository, it will create a new directory containing the scaffolded files. +The easiest way to install Docusaurus is to use the [`create-docusaurus`](./api/misc/create-docusaurus.mdx) command line tool that helps you scaffold a skeleton Docusaurus website. You can run this command anywhere in a new empty repository or within an existing repository, it will create a new directory containing the scaffolded files. ```bash npx create-docusaurus@latest my-website classic diff --git a/website/docs/typescript-support.mdx b/website/docs/typescript-support.mdx index 1493cbe123c7..6da089e2a7d0 100644 --- a/website/docs/typescript-support.mdx +++ b/website/docs/typescript-support.mdx @@ -10,7 +10,7 @@ The minimum required version is **TypeScript 5.1**. ## Initialization {#initialization} -Docusaurus supports writing and using TypeScript theme components. If the init template provides a TypeScript variant, you can directly initialize a site with full TypeScript support by using the `--typescript` flag. +Docusaurus supports writing and using TypeScript theme components. If the init template provides a TypeScript variant, you can directly [initialize a site](./installation.mdx#scaffold-project-website) with full TypeScript support by using the `--typescript` flag. ```bash npx create-docusaurus@latest my-website classic --typescript diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 852a0b4e3c83..fabe2ce34553 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -347,6 +347,10 @@ export default async function createConfigAsync() { from: ['/docs/resources', '/docs/next/resources'], to: '/community/resources', }, + { + from: '/docs/api/misc/docusaurus-init', + to: '/docs/api/misc/create-docusaurus', + }, ...dogfoodingRedirects, ], } satisfies ClientRedirectsOptions,