mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 03:37:48 +02:00
docs: add swizzle example (#2680)
This commit is contained in:
parent
b94b2181b2
commit
7caf7de417
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ Change any Docusaurus theme components to your liking with `docusaurus swizzle`.
|
|||
|
||||
```shell
|
||||
docusaurus swizzle <themeName> [componentName] [siteDir]
|
||||
|
||||
# example (leaving out the siteDir to indicate this directory)
|
||||
docusaurus swizzle @docusaurus/theme-classic DocSidebar
|
||||
```
|
||||
|
||||
Running the command will copy the relevant theme files to your site folder. You may then make any changes to it and Docusaurus will use it instead of the one provided from the theme.
|
||||
|
|
Loading…
Add table
Reference in a new issue