Skip to content

Commit

Permalink
Update using-themes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun authored Apr 5, 2020
1 parent 62cc7b7 commit 6a18573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/using-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ npm run swizzle @docusaurus/theme-classic Footer

This will copy the current `<Footer />` component used by the theme to a `src/theme/Footer` directory under the root of your site, which is where Docusaurus will look for swizzled components. Docusaurus will then use swizzled component in place of the original one from the theme.

Alternatively, if you wish swizzle all components, run:
Although we highly discourage swizzling of all components, if you wish to do that, run:

```bash npm2yarn
npm run swizzle @docusaurus/theme-classic
```

**Note**: You need to restart your dev server for Docusaurus to pick up the new component.
**Note**: You need to restart your webpack dev server in order for Docusaurus to know about the new component.

## Official themes by Docusaurus

Expand Down

0 comments on commit 6a18573

Please sign in to comment.