Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breadcrumbs for Search #7392

Closed
4 tasks done
stollero opened this issue Jul 24, 2024 · 1 comment
Closed
4 tasks done

Breadcrumbs for Search #7392

stollero opened this issue Jul 24, 2024 · 1 comment

Comments

@stollero
Copy link

Context

Having larger documentation, the chances are high that titles are not unique.

Description

Having breadcrumbs for the search instead of just the title will help to provide the context needed to find the right search result faster.

Having prototyped it may only be a smaller change in SearchIndex.create_entry_for_section, which I could implement.

        if page.ancestors:
            chapters = [i.title for i in page.ancestors]
            chapters.reverse()
            title = " → ".join(chapters + [title])

We could also add a search setting to enable or disable this behaviour.

Related links

Use Cases

Provides better overview

Visuals

grafik

Before submitting

@squidfunk
Copy link
Owner

squidfunk commented Jul 24, 2024

Thanks for suggesting! This is an exact duplicate of #3787. We've already solved this as part of #6307, but we're working on another big topic which must predate the release of search. There will be an announcement later this year, so stay tuned ☺️

Please understand that we're currently not considering PRs for the search plugin, since it will have a fundamentally different design in the near future, and adding new features would make more work for us to maintain. However, you could fork the plugin and adapt it to your needs, and release it as a separate plugin, as long as the format does not change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants