Add Section Breadcrumbs to DocSearch Results #3265
Replies: 1 comment 3 replies
-
Thanks for the suggestion @khalidabuhakmeh! From your screenshot, it looks like you’re actually using Pagefind, which is Starlight’s default search provider (rather than Algolia DocSearch). Pagefind doesn’t have a breadcrumb feature as far as I can tell looking through their docs, but they do allow for attaching custom metadata to pages, which might work as an alternative? Although these don’t work quite the same way — they are displayed more as “tags” below search results. For example, here’s what it looked like in a quick test: Visually, you can work around that with the CSS AFAICT, the main draw back to this approach is that custom metadata is displayed as a key–value pair “Key: Value”, so you can’t use it to just display e.g. “Tutorials” above pages in a tutorials section. You’d need to use something like “Section: Tutorials” or “Topic: Tutorials”. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlight
are you using?5.10.1
What is your idea?
We have documentation that uses similar titles across different sections. Is it possible to show the breadcrumbs leading to the content?
Why is this feature necessary?
Search phrases can show up across documentation, making it visually difficult to discern the correct choice from the results.
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions