cmfcmf / docusaurus-search-local

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

Indexing contains navigation buttons #4

Closed dodolab closed 4 years ago

dodolab commented 4 years ago

Hello,

we've discovered that search results include labels on Previous / Next buttons. For instance, in the demo example here: https://christianflach.de/OpenWeatherMap-PHP-API/docs/getting-started , if I search for API Key, it will navigate me to the very bottom where the Next button is located. Is it possible to either remove it from the indexing algorithm or make it at least configurable, so that labels on those buttons won't appear in the result?

Many thanks

cmfcmf commented 4 years ago

Whoopsie! I'll look into it and will likely switch to Cheerio for HTML parsing. I'll see if I can make it configurable as well. Of course I'll aim for the default to be compatible with the default theme. 👍

dodolab commented 4 years ago

That would be super cool :-) many thanks for your effort.

cmfcmf commented 4 years ago

Fixed in https://github.com/cmfcmf/docusaurus-search-local/compare/0e64aa7385a0680f5f378c77130d1c103e894e02...88f3ca8986c96bbc4dd0a3c6f29737fc58ca902c. It was surprisingly more work than expected :relieved: I'll release 0.1.0 with this fix after looking into #3.

dodolab commented 4 years ago

Amazing! Many thanks! I didn't expect it would be resolved so quickly.