cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
438 stars 67 forks source link

No search index after running 'yarn build' #68

Closed ScottAcceptto closed 2 years ago

ScottAcceptto commented 2 years ago

When I run yarn build then yarn start and try to search something I see:

"The search index is only available when you run docusaurus build!"

I see in the Readme that search does not work in development, is that why I see this error?

ScottAcceptto commented 2 years ago

I needed to run yarn serve. The documentation in the Readme could be updated to:

Important: Search only works for the statically built documentation (i.e., after you ran yarn build in your documentation folder and docusaurus serve).