vitepress-plugin-search是一个用于VitePress静态站点生成器的搜索插件。它提供了在站点中添加搜索功能的能力,让用户可以方便地通过输入关键词来搜索并定位到他们所需要的内容。 2.2 工作原理解释: vitepress-plugin-search的工作原理主要分为两个步骤:索引和搜索。 首先,在构建VitePress网站时,vitepress-plugin-search会遍历...
npmivitepress-plugin-searchflexsearch-D Add the plugin Using an vite.config file //vite.config.tsimport{SearchPlugin}from"vitepress-plugin-search";import{defineConfig}from"vite";//default optionsvaroptions={...flexSearchIndexOptions,previewLength:62,buttonLabel:"Search",placeholder:"Search docs",allo...
vitepress-plugin-search npm 地址 使用参考 使用 安装 npm i vitepress-plugin-search flexsearch -D 在config.ts 中进行配置 import { SearchPlugin } from 'vitepress-plugin-search' export default defineConfig({ vite: { plugins: [ SearchPlugin({ encode: false, tokenize: 'full' }) ] } }) ...
"./dist/vitepress-plugin-search.es.mjs", "exports": { ".": { "import": "./dist/vitepress-plugin-search.es.mjs", "require": "./dist/vitepress-plugin-search.umd.js" }, "./Search.vue": "./dist/Search.vue" }, "scripts": { "dev": "vite build --watch", "build": "vite bui...
vitepress-plugin-search/README.md Version: 1.12 kBMarkdownView Raw 1## Provides local search to your documentation site 2 3Uses [flexsearch](https://github.com/nextapps-de/flexsearch). 4 5## Installing 6 7```js 8npm i vitepress-plugin-search flexsearch -D ...
Provide local search to your documentation site. Contribute to emersonbottero/vitepress-plugin-search development by creating an account on GitHub.
UNPKG vitepress-plugin-search Version: 3 files, 1 folder Icon Name Size Content Type dist - - LICENSE 1.08 kB text/plain README.md 1.12 kB text/markdown package.json 1.71 kB application/json Build: a7ebffa © 2024 UNPKG
Multi language support Versions Current Tags VersionDownloads (Last 7 Days)Tag 1.0.41latest Version History VersionDownloads (Last 7 Days)Published 1.0.41a year ago 1.0.4-alpha.200a year ago npm i@fast-crud/vitepress-plugin-search License ...
vitepress-plugin-search 是一个为文档站点提供本地搜索功能的插件。通过该插件,用户可以在文档页面上快速、方便地进行搜索,以便更快地找到他们需要的信息。这个插件可以帮助提升用户体验,让用户更容易地浏览和查找文档内容。同时,vitepress-plugin-search 还支持定制化配置,可以根据需求调整搜索结果的显示方式,以及搜索范围...
Add the plugin //vite.config.tsimport{SearchPlugin}from"vitepress-plugin-search";import{defineConfig}from"vite";//default optionsvaroptions={...flexSearchIndexOptions,previewLength:62,buttonLabel:"Search",placeholder:"Search docs",};exportdefaultdefineConfig({plugins:[SearchPlugin(options)],}); ...