-
Notifications
You must be signed in to change notification settings - Fork 21
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
Missing anchors when searching #342
Comments
Thanks for exploring this--what level is the apart header? It looks like the searchbar is flagging the Expression section. I wonder if lower level headers (e.g. h3+) tend to be passed over in the search. I don't know how much we'll be able to do, but it seems important for how we end up recommending people structure docs (since search is super common for finding things 😓 ). |
It's
and the
|
Ok, thanks -- this is helpful! Looking at the quarto docs on search, I'm not sure exactly how search works, but can explore a bit. One option for customizing could be using algolia (mentioned in the docs). @cscheid, any chance there might be some helpful rules of thumb for understanding search in quarto? For example, are h3 headings too deep to be linked to in search? |
We definitely need to, except that I don't actually understand the limitations myself. It'll be a side quest for us, so no immediate promises on the turnaround time.. |
To improve the search, I manually do the following changes:
into:
So essentially I exchange h2 and h3 and remove the h1 (I don't know how to reintroduce the The changes make sure that the indexer finds the actual method definition itself and removing the |
When searching for a method, the search result does not contain the anchor to the method description, so the searcher is routed to the top of the relevant page. For example the following method:
has an anchor
reference/Expression.html#symbolica.Expression.apart
. When searching this anchor is missing:Note that the second hit has the anchor
#methods
.The text was updated successfully, but these errors were encountered: