Skip to content

Commit 8fc8667

Browse files
committed
Add local search to docs
1 parent 4865ad5 commit 8fc8667

File tree

3 files changed

+551
-0
lines changed

3 files changed

+551
-0
lines changed

docs/docusaurus.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,18 @@ navbar: {
9999
darkTheme: prismThemes.dracula,
100100
},
101101
} satisfies Preset.ThemeConfig,
102+
themes: [
103+
[
104+
"@easyops-cn/docusaurus-search-local",
105+
{
106+
hashed: true,
107+
language: ["en"],
108+
highlightSearchTermsOnTargetPage: true,
109+
explicitSearchResultPath: true,
110+
indexBlog: false,
111+
},
112+
],
113+
],
102114
};
103115

104116
export default config;

0 commit comments

Comments
 (0)