From 5625fae9dd9ad73c4e63ee2e690ce02565e24fd4 Mon Sep 17 00:00:00 2001 From: Kim Pohas Date: Mon, 16 Jun 2025 18:16:52 -0400 Subject: [PATCH 1/2] Remove obsolete SearchBar.js file --- src/theme/SearchBar.js | 82 ------------------------------------------ 1 file changed, 82 deletions(-) delete mode 100644 src/theme/SearchBar.js diff --git a/src/theme/SearchBar.js b/src/theme/SearchBar.js deleted file mode 100644 index a522b378cf..0000000000 --- a/src/theme/SearchBar.js +++ /dev/null @@ -1,82 +0,0 @@ -// By default, the classic theme does not provide any SearchBar implementation -// If you swizzled this, it is your responsibility to provide an implementation -// Tip: swizzle the SearchBar from the Algolia theme for inspiration: -// npm run swizzle @docusaurus/theme-search-algolia SearchBar -export {default} from '@docusaurus/Noop'; -import 'instantsearch.css/themes/satellite.css'; - -import algoliasearch from 'algoliasearch/lite'; -import { - InstantSearch, - SearchBox, - Hits, - Highlight, - RefinementList, -} from 'react-instantsearch-hooks-web'; - -const searchClient = algoliasearch('2SJPGMLW1Q', 'fb2f4e1fb40f962900631121cb365549'); - -// ... - -function App() { - return ( - - - - - - ); -} - -import { Configure } from 'react-instantsearch'; - - - -import { Hits } from 'react-instantsearch'; - -const indexName = crawler_sumodocs; - -function Hit({ hit }) { - return ( -
- {/* ... */} -
- ); -} - -// ... - -
- {/* ... */} - -
- - -window.dataLayer.push({ - algoliaUserToken: 'user-1', -}); - -aa('onUserTokenChange', (userToken) => { - window.dataLayer.push({ - algoliaUserToken: userToken, - }); -}, { immediate: true }); - - From 474bacb6eca99a1d669766a9fd4a92595dedb0f0 Mon Sep 17 00:00:00 2001 From: Kim Pohas Date: Mon, 16 Jun 2025 18:31:58 -0400 Subject: [PATCH 2/2] let Docusaurus fall back to its built-in component --- src/theme/{SearchBar/index.js => SearchBar.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/theme/{SearchBar/index.js => SearchBar.js} (100%) diff --git a/src/theme/SearchBar/index.js b/src/theme/SearchBar.js similarity index 100% rename from src/theme/SearchBar/index.js rename to src/theme/SearchBar.js