Skip to content

Commit

Permalink
docs: add swizzle delete tip
Browse files Browse the repository at this point in the history
  • Loading branch information
effozen committed Dec 12, 2024
1 parent 91c0b5b commit 6b0275e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/docs/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6b0275e

Please sign in to comment.