Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
doyouhaobaby committed Dec 8, 2023
1 parent 33a3e3e commit 15a4a2a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,24 @@ export default defineConfig({
],

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

footer: {
Expand Down

0 comments on commit 15a4a2a

Please sign in to comment.