From 9cefca42df42e1f3d30e6760c885e387c9ee2545 Mon Sep 17 00:00:00 2001 From: Zen <107134031+effozen@users.noreply.github.com> Date: Fri, 13 Dec 2024 23:27:03 +0900 Subject: [PATCH] docs: add swizzle delete tip (#10759) --- website/docs/swizzling.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/swizzling.mdx b/website/docs/swizzling.mdx index 35ca59cca8..277535fc0a 100644 --- a/website/docs/swizzling.mdx +++ b/website/docs/swizzling.mdx @@ -94,6 +94,12 @@ npm run swizzle -- --list Use `--help` to see all available CLI options, or refer to the reference [swizzle CLI documentation](./cli.mdx#docusaurus-swizzle). +:::tip Removing Unneeded Swizzled Components + +If you decide that a previously swizzled component is no longer necessary, you can simply remove its file(s) from the `src/theme` directory. After removing the component, make sure to restart your development server to ensure the changes are properly reflected. + +::: + :::note After swizzling a component, **restart your dev server** in order for Docusaurus to know about the new component.