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.
Currently the plugin looks for
pageTitle
with a hardcoded CSS selector here inparse.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 bydocusaurus
, 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 extractingpageTitle
could be configurable.