Skip to content

Commit

Permalink
docs: fix documented path of swizzled component (#9786)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoilarsi authored Jan 25, 2024
1 parent d3142c5 commit 3d8b70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,6 @@ To use your own search, swizzle the `SearchBar` component in `@docusaurus/theme-
npm run swizzle @docusaurus/theme-classic SearchBar
```

This will create an `src/themes/SearchBar` file in your project folder. Restart your dev server and edit the component, you will see that Docusaurus uses your own `SearchBar` component now.
This will create an `src/theme/SearchBar` file in your project folder. Restart your dev server and edit the component, you will see that Docusaurus uses your own `SearchBar` component now.

**Notes**: You can alternatively [swizzle from Algolia SearchBar](#editing-the-algolia-search-component) and create your own search component from there.

0 comments on commit 3d8b70e

Please sign in to comment.