Skip to content

Commit 4e0b88f

Browse files
authored
docs(search): add new search feature (#10)
Signed-off-by: Christine <[email protected]>
1 parent 6c8dadb commit 4e0b88f

File tree

4 files changed

+18054
-1242
lines changed

4 files changed

+18054
-1242
lines changed

docusaurus.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,18 @@ const config = {
6060
}),
6161
],
6262
],
63-
63+
// 👇 Add the local search theme here
64+
themes: [
65+
[
66+
require.resolve("@easyops-cn/docusaurus-search-local"),
67+
{
68+
hashed: true,
69+
language: ["en"],
70+
highlightSearchTermsOnTargetPage: true,
71+
explicitSearchResultPath: true,
72+
},
73+
],
74+
],
6475
themeConfig:
6576
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
6677
({

0 commit comments

Comments
 (0)