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

[feature request] allow specifying docs path #72

Closed duanwilliam closed 2 years ago

duanwilliam commented 2 years ago

At the moment, the plugin expects all docs to be inside a docs folder. It would be helpful if this folder path can be passed in as an option.

Getting an SSR error whenever trying to build, so unfortunately can't provide the PR for it at the moment, but I don't believe very many changes need to be made to make this change (add to options type / validator, replace the hardcoded 'docs' with docsPath or whatever it would be called at server.index.ts:L124).

Thank you for your work on this!