mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
docs(website): document npm2yarn plugin + use new Tabs API everywhere (#5590)
* Update docs * Bad grammar * Add code highlight
This commit is contained in:
parent
b403356dbd
commit
89cb975cc4
6 changed files with 80 additions and 82 deletions
|
@ -363,20 +363,15 @@ import Tabs from '@theme/Tabs';
|
|||
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
<Tabs
|
||||
defaultValue="bash"
|
||||
values={[
|
||||
{ label: 'Bash', value: 'bash' },
|
||||
{ label: 'Windows', value: 'windows' }
|
||||
]}>
|
||||
<TabItem value="bash">
|
||||
<Tabs>
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
|
||||
```bash
|
||||
GIT_USER=<GITHUB_USERNAME> yarn deploy
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="windows">
|
||||
<TabItem value="windows" label="Windows">
|
||||
|
||||
```batch
|
||||
cmd /C "set "GIT_USER=<GITHUB_USERNAME>" && yarn deploy"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue