mirror of
https://github.com/EyeTrackVR/EyeTrackVR-Docs.git
synced 2025-11-04 14:49:44 +08:00
update: added options to flexsearch
This commit is contained in:
parent
679f0bc0aa
commit
bd68486599
5
package.json
Normal file
5
package.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@types/flexsearch": "^0.7.3"
|
||||
}
|
||||
}
|
||||
@ -2,9 +2,16 @@
|
||||
import { SearchPlugin } from "vitepress-plugin-search";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://github.com/nextapps-de/flexsearch#options
|
||||
var flexSearchIndexOptions = {
|
||||
preset: "score",
|
||||
cache: 1000,
|
||||
context: true,
|
||||
}
|
||||
|
||||
//default options
|
||||
var options = {
|
||||
/* ...flexSearchIndexOptions, */
|
||||
...flexSearchIndexOptions,
|
||||
previewLength: 62,
|
||||
buttonLabel: "Search",
|
||||
placeholder: "Search docs",
|
||||
|
||||
8
yarn.lock
Normal file
8
yarn.lock
Normal file
@ -0,0 +1,8 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@types/flexsearch@^0.7.3":
|
||||
version "0.7.3"
|
||||
resolved "https://registry.yarnpkg.com/@types/flexsearch/-/flexsearch-0.7.3.tgz#ee79b1618035c82284278e05652e91116765b634"
|
||||
integrity sha512-HXwADeHEP4exXkCIwy2n1+i0f1ilP1ETQOH5KDOugjkTFZPntWo0Gr8stZOaebkxsdx+k0X/K6obU/+it07ocg==
|
||||
Loading…
Reference in New Issue
Block a user