Offline / local search for Docusaurus v2 that works behind your firewall.
yarn add @cmfcmf/docusaurus-search-local
or
npm install @cmfcmf/docusaurus-search-local
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
).
MIT