cmfcmf / docusaurus-search-local

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

Feature Request: Ability to config the CSS selector for page titles #144

Closed chszchen-nordcloud closed 1 year ago

chszchen-nordcloud commented 1 year ago

Currently the plugin looks for pageTitle with a hardcoded CSS selector here in parse.ts, while building index files. However, we've come across cases where this selector did not match the desired text and page titles were left empty during searching. Since the HTML documents are generated from MDX files automatically by docusaurus, we do not have direct control over the structure of the generated document. It would be much more flexible if the CSS selector used for extracting pageTitle could be configurable.

cmfcmf commented 1 year ago

Hey, I think title extraction is fixed (see https://github.com/cmfcmf/docusaurus-search-local/issues/146). I'll release a new version this weekend.