-
Notifications
You must be signed in to change notification settings - Fork 102
Fix search in docs (#254) #255
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
Conversation
Is there a way to get function names into the the search, like with Also it would be great to add some description on how this fixes the problem in the PR comment. Helps with knowledge sharing for people browsing the PRs. |
I would recommend adding a
and for maybe this should be:
Notice for the ADT, only for functions that are defined in that module, not the methods. EDIT: Then we just add the function field to the list of fields to search against. |
This is fixed with tags now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is amazing, I was to do that and you were fastest 😄 👏
Just one thing do you know if is it possible to change the result link on each tag? Like for instance on assoc
I wanted to link directly go to the assoc definition /functions/helpers.html#assoc
weight: 60 | ||
--- | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need that extra spaces
It doesn't seem like that is possible with the current search engine supplied. Though, that would be nice to have. Here's the parameters available: https://github.com/electricjs/electric/blob/master/packages/electric-base-components/src/ElectricSearchBase.js#L131 |
I would say that this is a good step forward. Now I am wondering @HenriqueLimas if you know of a hook that builds out the search reference data and if we could hook it where we are building out the md hooks for header links here. Curious if there is some way in that config to add "custom" entries to the dataset used to search on. But unless anyone says Boo, I say we merge this up and get it into the pipeline. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Gonna ship this and explore ways to further enhance the search capabilities with additional iteration.
This change only uses
Title
,Description
, andTags
as the search fields, and adds function names to the tags field of their relative documentation.