leo-buneev / vuepress-plugin-fulltext-search

Adds full-text search capabilities to your vuepress site with a help of flexsearch library.
MIT License
93 stars 23 forks source link

Wrong category names for custom titles #21

Closed merfire closed 3 years ago

merfire commented 3 years ago

This is my sidebar config: sidebar

These are search results: screenshot

When I search for something in getting started category instead of showing title "Getting started" it shows route /getting-started/ as category name. (I understand that is shows the route because there isn't h1 in the markdown file) I have same problem with custom children titles too, for example "Using ormconfig.json" isn't showing as my category name, instead it is showing "Using Configuration Sources" which is h1 in that markdown file. Is there a way to show custom category names that we set in our config file, instead of only default h1 from markdown file?

leo-buneev commented 3 years ago

Fixed in 2.1.0, thanks for detailed description.

If page doesn't have it's own title, we attempt to take one from sidebar.

DraCod commented 2 years ago

Chinese not resolved,English is ok