mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 15:29:32 +02:00
docs: Link initialization docs together (#10740)
This commit is contained in:
parent
a995865314
commit
01cad20b5a
3 changed files with 6 additions and 2 deletions
|
@ -26,7 +26,7 @@ Use **[docusaurus.new](https://docusaurus.new)** to test Docusaurus immediately
|
||||||
|
|
||||||
## Scaffold project website {#scaffold-project-website}
|
## 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
|
```bash
|
||||||
npx create-docusaurus@latest my-website classic
|
npx create-docusaurus@latest my-website classic
|
||||||
|
|
|
@ -10,7 +10,7 @@ The minimum required version is **TypeScript 5.1**.
|
||||||
|
|
||||||
## Initialization {#initialization}
|
## 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
|
```bash
|
||||||
npx create-docusaurus@latest my-website classic --typescript
|
npx create-docusaurus@latest my-website classic --typescript
|
||||||
|
|
|
@ -347,6 +347,10 @@ export default async function createConfigAsync() {
|
||||||
from: ['/docs/resources', '/docs/next/resources'],
|
from: ['/docs/resources', '/docs/next/resources'],
|
||||||
to: '/community/resources',
|
to: '/community/resources',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
from: '/docs/api/misc/docusaurus-init',
|
||||||
|
to: '/docs/api/misc/create-docusaurus',
|
||||||
|
},
|
||||||
...dogfoodingRedirects,
|
...dogfoodingRedirects,
|
||||||
],
|
],
|
||||||
} satisfies ClientRedirectsOptions,
|
} satisfies ClientRedirectsOptions,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue