docs: fix documented path of swizzled component (#9786)

This commit is contained in:
Shamoil Arsiwala 2024-01-26 00:27:42 +05:30 committed by GitHub
parent d3142c5ed5
commit 3d8b70e0b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -310,6 +310,6 @@ To use your own search, swizzle the `SearchBar` component in `@docusaurus/theme-
npm run swizzle @docusaurus/theme-classic SearchBar 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. **Notes**: You can alternatively [swizzle from Algolia SearchBar](#editing-the-algolia-search-component) and create your own search component from there.