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

Improve usuablity of documentation site search #106

Open
claremacrae opened this issue Jan 15, 2025 · 5 comments
Open

Improve usuablity of documentation site search #106

claremacrae opened this issue Jan 15, 2025 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@claremacrae
Copy link

Reproduction:

  1. Open https://fevol.github.io/obsidian-typings/
  2. Enter canvas in the Search box

Result:

You have to click 8 times on 'Load more results' - which gets very old, very quickly.

image

@claremacrae
Copy link
Author

The same usability-of-search issue applies to @mProjectsCode's otherwise-excellent Obsidian Stats - so I suspect it is using the same underlying technology.

@claremacrae
Copy link
Author

As well as the scrolling issue, it's not taking advantage of the full width of the screen.

For comparison, this is what the GitHub equivalent search looks like:

image

@mProjectsCode
Copy link

Yes. Those two sites use the same framework. They said that version 0.31.0 of the framework has a better search, but neither site uses that version yet. I also haven't looked at the improvements so idk how major they are.

@Fevol Fevol added the documentation Improvements or additions to documentation label Jan 19, 2025
@Fevol
Copy link
Owner

Fevol commented Jan 19, 2025

Yeah, the search capability could definitely be improved, both stylistically and functionally.
The new Starlight update might indeed improve things, but there also seem to be some configuration options that can be tweaked.
I'll try to get to this sometime soon!

@Fevol
Copy link
Owner

Fevol commented Jan 22, 2025

A short investigation on this issue:

General observations:

  • PageFind currently only considers the content for ranking the search, customizing page title ranking is not supported (Discord Message in the Astro server)
  • If you are looking for specific Canvas functionality, adding more search term information would always help

Altering the page size:

I think it would be best in this case to wait for official support from Starlight.
In the meantime, I've bumped the website to the latest Starlight version, which does seem to order the results a bit more sanely.

EDIT: I am also going to test out the Algolia DocSearch integration, as that can be configured differently.

@Fevol Fevol changed the title Could usability of the Search feature in the published docs be improved - to show more than 5 results at a time Improve usuablity of documentation site search Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants