Skip to content

Commit

Permalink
feat: Add local search (#59)
Browse files Browse the repository at this point in the history
* feat: Add local search

* Fix: style search

* feat: make sure the search dropdown is visible

---------

Co-authored-by: kotte <konstantin.aistre@gmail.com>
  • Loading branch information
erictuvesson and mrtamagotchi authored Jan 29, 2024
1 parent c4c2e18 commit bfbec50
Show file tree
Hide file tree
Showing 6 changed files with 566 additions and 36 deletions.
10 changes: 10 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ const config = {
plugins: [
'docusaurus-plugin-sass',

// https://github.com/praveenn77/docusaurus-lunr-search
[
'@easyops-cn/docusaurus-search-local',
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
{
hashed: true,
searchBarPosition: 'left',
},
],

// Node reference docs
[
'@docusaurus/plugin-content-docs',
Expand Down
Loading

0 comments on commit bfbec50

Please sign in to comment.