Skip to content

Commit

Permalink
feat: support local search (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet authored Aug 11, 2023
1 parent 72eef8d commit f5bac5f
Show file tree
Hide file tree
Showing 3 changed files with 462 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,16 @@ const versions = require('./versions.json');
darkTheme: darkCodeTheme,
},
}),

themes: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
docsRouteBasePath: ['docs','livedemo', 'community', 'blog'],
hashed: true,
explicitSearchResultPath: true,
}),
],
],
});
Loading

0 comments on commit f5bac5f

Please sign in to comment.