Skip to content

Commit a137f77

Browse files
committed
Make the doc searchable
1 parent 351b192 commit a137f77

3 files changed

Lines changed: 554 additions & 0 deletions

File tree

docusaurus.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ const config: Config = {
5050
},
5151
],
5252

53+
themes: [
54+
[
55+
require.resolve('@easyops-cn/docusaurus-search-local'),
56+
{
57+
hashed: true,
58+
docsRouteBasePath: '/',
59+
indexBlog: false,
60+
highlightSearchTermsOnTargetPage: true,
61+
searchBarShortcut: true,
62+
searchBarShortcutKeymap: 'mod+k',
63+
searchBarShortcutHint: true,
64+
},
65+
],
66+
],
67+
5368
presets: [
5469
[
5570
'classic',

0 commit comments

Comments
 (0)