Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docusaurus-lunr-search

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docusaurus-lunr-search

Offline search component for Docusaurus V2

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43K
decreased by-14.12%
Maintainers
1
Weekly downloads
 
Created
Source

Offline Search for Docusaurus V2 Demo Website

Sample

How to Use ?

  1. Install this package
npm i docusaurus-lunr-search  --save
//OR
npm i docusurus-lunr-search --save // Depreciated
  1. Then run docusaurus swizzle
npm run swizzle docusaurus-lunr-search SearchBar
  1. Add the docusaurus-lunr-search plugin to your docusaurus.config.js
module.exports = {
  // ...
  plugins: [
    'docusaurus-lunr-search'
  ]
}
  1. Then build your Docusaurus project
npm run build
  1. Serve your application
npx http-server ./build

Note: Docusaurus search information can only be generated from a production build. Local development is currently not supported.

Thanks to algolia/docsearch.js, I modified it to create this search component

Keywords

FAQs

Package last updated on 06 May 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc