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

Retrieve page titles from meta tags #53

Open
Tracked by #111 ...
Strift opened this issue Jun 29, 2023 · 3 comments
Open
Tracked by #111 ...

Retrieve page titles from meta tags #53

Strift opened this issue Jun 29, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Strift
Copy link

Strift commented Jun 29, 2023

in the results, the page hosted at website.com/docs/examples/foo will be formatted (written in pink) as docs / examples / foo (or docs > examples > foo, depending on which formatting we decided to keep).

Could we pull the page title from the meta tag instead of using the URL ?
Some websites might not have proper page titles, but that's on them to fix that. Page titles may be a more reasonable default than the URL itself?

We probably want to avoid having to think about all the weird ways to handle transform URLs into readable text.

@bidoubiwa bidoubiwa added the enhancement New feature or request label Jun 29, 2023
@bidoubiwa
Copy link
Contributor

Hey! Thanks for the suggestion :) I was thinking that it could be a configurable option. A boolean that by default is false but if the user wants to use the meta tags (or the title tag) he could specify it.

@qdequele
Copy link
Member

Hello @Strift, are you using docsearch version or default version?

On the default version, the title is already taken from the metadata. You also have a field urls_tags that is an array of strings containing all the elem in the pathname.

@Strift
Copy link
Author

Strift commented Jul 22, 2023

My comment was based on a preview @bidoubiwa shared with me 3 weeks ago. She asked me to create an issue about it.
I don't know which version it is, and can't say if the issue is still relevant as of today.

This was referenced Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants