@anmode/docusaurus-search-local

0.11.8 • Public • Published

Docusaurus Search Local

npm version

Docusaurus Search Local is a plugin for Docusaurus that provides a search functionality for your Docusaurus website that works entirely client-side. This means that the search index and search functionality is available offline after the initial page load.

Installation

npm i @anmode/docusaurus-search-local

Usage

Add the plugin to your docusaurus.config.js:

module.exports = {
  // ...
  plugins: ['docusaurus-search-local'],
};

That's it! By default, the plugin will index all pages and use a search bar in the navbar. You can configure this behavior by passing options:

module.exports = {
  // ...
  plugins: [
    [
      'docusaurus-search-local',
      {
        // Options here
      },
    ],
  ],
};

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Credits

This project is a fork of docusaurus-lunr-search, which was originally created by lelouch77 and later maintained by datenknoten. Special thanks to them for laying the foundation for this project.

This forked version of the project contains fixes and updates made by anmode, who cloned the repository from cmfcmf/docusaurus-search-local.

License

MIT

Package Sidebar

Install

npm i @anmode/docusaurus-search-local

Weekly Downloads

0

Version

0.11.8

License

MIT

Unpacked Size

305 kB

Total Files

44

Last publish

Collaborators

  • anmol05