Skip to content

Commit b395998

Browse files
committed
Add fuzzy search bar using docusaurus-search-local
1 parent 3f19ec8 commit b395998

File tree

3 files changed

+601
-1
lines changed

3 files changed

+601
-1
lines changed

docusaurus.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ const config: Config = {
6060
],
6161
],
6262

63+
themes: [
64+
[
65+
require.resolve("@easyops-cn/docusaurus-search-local"),
66+
{
67+
hashed: true,
68+
language: ["en"],
69+
highlightSearchTermsOnTargetPage: true,
70+
explicitSearchResultPath: true,
71+
},
72+
],
73+
],
74+
6375
themeConfig: {
6476
// Replace with your project's social card
6577
image: 'img/ferrum-social-card.jpg',

0 commit comments

Comments
 (0)