toga icon indicating copy to clipboard operation
toga copied to clipboard

Documentation search functionality seems hobbled

Open rmartin16 opened this issue 1 year ago • 3 comments

What is the problem or limitation you are having?

When using the search functionality on RTD, the results seem limited and less useful than they could be. Given the prominent search box is the obvious method to find arbitrary information in the documentation, this makes it harder to find what I'm looking for.

Describe the solution you'd like

Consider searching for "dialog"; ideally, the search result would include all of the dialog methods on Window. Instead, it only includes the stack_trace_dialog (and the presentation of the search result doesn't make even that clear).

This clearly isn't Toga functionality per se....but perhaps it's possible to improve how the search results behave.

Describe alternatives you've considered

If I know something exists but can't find it in the docs, I'll perform a GitHub search instead.

Additional context

No response

rmartin16 avatar Feb 09 '24 16:02 rmartin16

Interestingly, the search results from the docs built on my local machine are particularly more useful...

image

rmartin16 avatar Feb 09 '24 16:02 rmartin16

Odd... when I do it on the site, I get results for stack_trace_dialog, select_folder_dialog, and open_file_dialog. Though yes, the presentation of them is unhelpful. It looks like it's only searching for the entire word, so it finds it as a return type and occurring in text, but not the method names themselves.

Screenshot 2024-02-09 at 6 01 21 PM

What's also odd is that my locally built version lists the same results as yours, but without the highlighted text summaries yours has.

Screenshot 2024-02-09 at 6 02 29 PM

HalfWhitt avatar Feb 09 '24 23:02 HalfWhitt

This still really bothers me....and it isn't even that RTD and locally built docs handle search differently....docs built for PRs on RTD work while search for stable docs are bad....

image

rmartin16 avatar Jun 10 '24 16:06 rmartin16