easyops-cn / docusaurus-search-local

Offline/local search for Docusaurus v2/v3
https://easyops-cn.github.io/docusaurus-search-local/
MIT License
712 stars 91 forks source link

Build Issue with Hash Router #448

Open ankur-vunet opened 2 months ago

ankur-vunet commented 2 months ago

When I am using hash router, I am unable to create the build with this plugin. Any workaround for making search with this plugin work with hash router?

weareoutman commented 2 months ago

I'm afraid our plugin won't work with hash router.

Under the hood, we parse all generated html files to build the search index (just like a traditional search engine crawler). However, hash router will compile all page contents into javascript code, which can not be static analyzed.

Maybe it's possible using a headless browser to render the site and crawl the pages by links, but it's not in our plan.