Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/docs/api/misc/create-docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A scaffolding utility to help you instantly set up a functional Docusaurus app.

## Usage {/* #usage */}

```bash
```bash npm2yarn
npx create-docusaurus@latest [name] [template] [rootDir]
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/i18n/i18n-crowdin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The end result can be seen at [docusaurus-crowdin-example.netlify.app](https://d

Initialize a new Docusaurus site:

```bash
```bash npm2yarn
npx create-docusaurus@latest website classic
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/i18n/i18n-git.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This is a walk-through of using Git to translate a newly initialized English Doc

Initialize a new Docusaurus site:

```bash
```bash npm2yarn
npx create-docusaurus@latest website classic
```

Expand Down
6 changes: 5 additions & 1 deletion website/docs/i18n/i18n-tutorial.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ This tutorial will walk you through the basics of the **Docusaurus i18n system**

We will add **French** translations to a **newly initialized English Docusaurus website**.

Initialize a new site with `npx create-docusaurus@latest website classic` (like [this one](https://github.com/facebook/docusaurus/tree/main/examples/classic)).
Initialize a new site (like [this one](https://github.com/facebook/docusaurus/tree/main/examples/classic)):

```bash npm2yarn
npx create-docusaurus@latest website classic
```

## Configure your site {/* #configure-your-site */}

Expand Down
4 changes: 2 additions & 2 deletions website/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ Use **[docusaurus.new](https://docusaurus.new)** to test Docusaurus immediately

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 npm2yarn
npx create-docusaurus@latest my-website classic
```

We recommend the `classic` template so that you can get started quickly, and it contains features found in Docusaurus 1. The `classic` template contains `@docusaurus/preset-classic` which includes standard documentation, a blog, custom pages, and a CSS framework (with dark mode support). You can get up and running extremely quickly with the classic template and customize things later on when you have gained more familiarity with Docusaurus.

You can also use the template's TypeScript variant by passing the `--typescript` flag. See [TypeScript support](./typescript-support.mdx) for more information.

```bash
```bash npm2yarn
npx create-docusaurus@latest my-website classic --typescript
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Create a new Docusaurus site and follow the **very short** embedded tutorial.

Install [Node.js](https://nodejs.org/en/download/) and create a new Docusaurus site:

```bash
```bash npm2yarn
npx create-docusaurus@latest my-website classic
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/typescript-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The minimum required version is **TypeScript 5.1**.

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 npm2yarn
npx create-docusaurus@latest my-website classic --typescript
```

Expand Down