From 7caf7de417a7cc1eb521d32519fd8fc63a9441fa Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 27 Apr 2020 19:53:45 -0700 Subject: [PATCH] docs: add swizzle example (#2680) --- website/docs/cli.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/docs/cli.md b/website/docs/cli.md index 0495a67f99..72361ae482 100644 --- a/website/docs/cli.md +++ b/website/docs/cli.md @@ -80,6 +80,9 @@ Change any Docusaurus theme components to your liking with `docusaurus swizzle`. ```shell docusaurus swizzle [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.