mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
feat(npm-to-yarn): add support for PnPm and custom converters (#8690)
Co-authored-by: Ben Gubler <nebrelbug@gmail.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
17781fd5d3
commit
fabf053def
11 changed files with 411 additions and 66 deletions
|
@ -55,38 +55,10 @@ npx create-docusaurus@latest my-website facebook
|
|||
|
||||
You can also initialize a new project using your preferred project manager:
|
||||
|
||||
```mdx-code-block
|
||||
<Tabs>
|
||||
<TabItem value="npm">
|
||||
```
|
||||
|
||||
```bash
|
||||
```bash npm2yarn
|
||||
npm init docusaurus
|
||||
```
|
||||
|
||||
```mdx-code-block
|
||||
</TabItem>
|
||||
<TabItem value="yarn">
|
||||
```
|
||||
|
||||
```bash
|
||||
yarn create docusaurus
|
||||
```
|
||||
|
||||
```mdx-code-block
|
||||
</TabItem>
|
||||
<TabItem value="pnpm">
|
||||
```
|
||||
|
||||
```bash
|
||||
pnpm create docusaurus
|
||||
```
|
||||
|
||||
```mdx-code-block
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
Run `npx create-docusaurus@latest --help`, or check out its [API docs](./api/misc/create-docusaurus.mdx) for more information about all available flags.
|
||||
|
@ -193,7 +165,7 @@ npm install
|
|||
|
||||
To check that the update occurred successfully, run:
|
||||
|
||||
```bash npm2yarn
|
||||
```bash
|
||||
npx docusaurus --version
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue