Package Exports
- @cmfcmf/docusaurus-search-local
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cmfcmf/docusaurus-search-local) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Local Search for Docusaurus v2
Local search for Docusaurus v2.
Installation
yarn add @cmfcmf/docusaurus-search-localor
npm install @cmfcmf/docusaurus-search-localUsage
Add this plugin to the plugins array in docusaurus.config.js:
module.exports = {
// ...
plugins: [
'@cmfcmf/docusaurus-search-local'
],
// ...
}You can now use the search bar to search your documentation.
Important: Search only works for the statically built documentation (i.e., after you ran yarn build in your documentation folder).
Search does not work in development (i.e., when running yarn start).
License
MIT