
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
vitepress-plugin-search
Advanced tools
Provide local search to your documentation site using lunr.
It works for standard vitepress docs using the doc folder.
Basic Steps to make it work!
npm i vitepress-plugin-search -D
//docs/vite.config.js
import { defineConfig } from "vite";
export default defineConfig({
resolve: {
alias: {
"./components/AlgoliaSearchBox.vue":
"vitepress-plugin-search/src/Search.vue",
},
},
});
//.vitepress/config.js
themeConfig: {
...
algolia: {},
...
}
Add lunr_index.js
to .gitignore
Add scripts to build the index
"prebuild": "npm run index",
"index": "node ./node_modules/vitepress-plugin-search/src/index.js"
Build twice before running dev.
Build twice on CI/CD
"build": "npm run index && vitepress build docs && npm run index && vitepress build docs",
FAQs
Provide local search to your documentation site.
The npm package vitepress-plugin-search receives a total of 2,481 weekly downloads. As such, vitepress-plugin-search popularity was classified as popular.
We found that vitepress-plugin-search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.