From d3b3aaa4ac7a57031dad737360f6ab8fcb37b3c0 Mon Sep 17 00:00:00 2001 From: Massoud Maboudi Date: Sun, 21 Feb 2021 13:03:59 +0330 Subject: [PATCH 1/8] added more details about --danger flag for swizzle --- website/docs/cli.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/docs/cli.md b/website/docs/cli.md index bc53f24ed028..4325517a63f4 100644 --- a/website/docs/cli.md +++ b/website/docs/cli.md @@ -114,6 +114,18 @@ Running the command will copy the relevant theme files to your site folder. You | `--danger` | Allow swizzling of unstable components | | `--typescript` | Swizzle TypeScript components | +An example to use `--danger` flag let's consider the below code: + +```bash +npx docusaurus swizzle @docusaurus/theme-classic Logo --danger +``` + +:::caution + +Unstable Components: components that have a higher risk of breaking changes due to internal refactorings. + +::: + To unswizzle a component, simply delete the files of the swizzled component.