-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for direct method lookups in search #253
Comments
On that note:
I guess that could be made smarter for methods:
hmmm.... |
Looked at doing that, but finding the package from a |
the search candidate data (which is then filtered to show a list on screen)
is built from the document sources. If the relevant method is described in
a Type/document eg (Type/Array.rakudoc) with a heading "=head2 method push"
then it is included in the composite file for push.
my guess is that such a heading doesnt exist. that then is a content
problem.
if such a heading does exist, but is not in the search bar, let me know
because that would be a bug in the doc-site plugin 'secondaries'. content
not showing up is a build problem.
…On Thu, May 11, 2023, 12:29 Elizabeth Mattijsen ***@***.***> wrote:
Looked at doing that, but finding the package from a Method object turned
out to be too difficult.
—
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACYZHEEDQTZCG5W5RQYAVTXFTETBANCNFSM6AAAAAAX42VTNM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@voldenet I tried searching on push, which gives several candidates, including the fact that it is in the documentation on Type Array. But it can also be used for a Hash. All of this information is contained in the search bar. So closing. |
The original ask, a way to search for the specific method, still isn't done, and I think is a worthwhile ask. The workaround (search for push, pick the right one) is a workaround. |
@coke How would this look generically? If a search is made on If a search is made on So generically, searching on a method name yields all the Types that provide it, and searching on a Type name provides all the methods it provides. I suppose that is what the Type and Routine pages were intended for. I have never found them useful. |
I noticed, that @voldenet wrote about searching for |
IMO, one could search for .push and that should return the combined page as the top result. Class.method should return the specific result as the top result |
@patrickbkr I closed this issue orginally, thinking that it was not really a doc-website problem, and more of a Raku/doc content problem. The information that @voldenet specifically requested was included in the list of candidates by search, which I had improved between his original request and when I closed the issue. @coke re-opened it because a search on So I am trying to figure out what search strings should produce which results. I remain a bit confused and so I can't figure out how this issue could be closed. |
I thought it was clear what the ask was. Is there a way to write tests to run with the build that can compare search results with query strings? If so, I can write tests to cover the cases. |
@coke @voldenet @patrickbkr @lizmat Currently Search is a filter on a list of candidate structures and selects only those that match or fuzzy-match the search string and the |
Do we have syntactic support for establishing the connection of Or is there a convention that says that if a I'm a bit out of the loop with respect to the capabilities of rakudoc, but something like If we have that high-level information available (this file talks about the class "Array" and this section talks about a method of that class with name "push"), then we could automatically add an index entry: |
@patrickbkr tl;dr Your suggestion would require a fairly fundamental re-write of the Documentation suite. I think that's possible, and I'll respond in more detail below. To address the suggestion, I think some extra information is needed (apologies if this is already known, but restating it may help if I have misunderstood your suggestion).
So to respond to your suggestion: We already have a ponderous system for gathering search information from the source files.
It would be possible to add metadata to each |
It would be nice if search for
Array.push
would get to the https://docs.raku.org/type/Array.html#method_push directly.The text was updated successfully, but these errors were encountered: