Skip to content

Commit

Permalink
update search options (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arhell authored May 23, 2024
1 parent e0ad843 commit db5b825
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,25 @@ export default ({
],

search: {
provider: 'local'
provider: 'local',
options: {
miniSearch: {
/**
* @type {Pick<import('minisearch').Options, 'extractField' | 'tokenize' | 'processTerm'>}
*/
options: {
/* ... */
},
/**
* @type {import('minisearch').SearchOptions}
* @default
* { fuzzy: 0.2, prefix: true, boost: { title: 4, text: 2, titles: 1 } }
*/
searchOptions: {
/* ... */
}
}
}
},

nav: [
Expand Down

0 comments on commit db5b825

Please sign in to comment.