Skip to content

Commit aab7a10

Browse files
feat: add search box using docusaurus-plugin-search-local (#26)
* feat: add search box using docusaurus-plugin-search-local Signed-off-by: Sriram27102003 <[email protected]> * chore: remove Algolia autocomplete-js dependency as per review Signed-off-by: Sriram27102003 <[email protected]> * fix:removed unrelated changes Signed-off-by: Sriram27102003 <[email protected]> * fixrestored unrelated spacing Signed-off-by: Sriram27102003 <[email protected]> * fix:restored unrelated spacing Signed-off-by: Sriram27102003 <[email protected]> * fix:restored unrelated spacing again Signed-off-by: Sriram27102003 <[email protected]> --------- Signed-off-by: Sriram27102003 <[email protected]>
1 parent 2192f86 commit aab7a10

File tree

3 files changed

+244
-1
lines changed

3 files changed

+244
-1
lines changed

docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ const config = {
174174
darkTheme: prismThemes.dracula,
175175
},
176176
}),
177+
plugins: [
178+
require.resolve('docusaurus-plugin-search-local'),
179+
],
180+
177181
scripts: [
178182
{
179183
src: 'https://www.cncf.io/wp-content/themes/cncf-twenty-two/source/js/on-demand/hello-bar-embed.js',

package-lock.json

Lines changed: 239 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@docusaurus/preset-classic": "3.8.1",
5656
"@mdx-js/react": "^3.1.0",
5757
"clsx": "^2.1.1",
58+
"docusaurus-plugin-search-local": "^2.1.2",
5859
"prism-react-renderer": "^2.4.1",
5960
"react-dom": "^19.1.0",
6061
"react": "^19.1.0"

0 commit comments

Comments
 (0)