-
Notifications
You must be signed in to change notification settings - Fork 36
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 search on website #686
Comments
The problem is that the search index is based on the md files, not the HTML ones: in the md file, Searching for "pl_sum_horizontal" works fine (but is clearly not ideal because we'd need to prefix lazy functions with "LazyFrame_", etc.): |
That is something to fix in Edit: not sure of that actually, the problem is that the "Usage" section is originally really weird because of |
This is annoying, the website loses half of its interest if search is impossible (or only with the trick of searching for e.g "DataFrame_"). To summarize the comments above, the problem is that the search index used by We may think that this can be fixed by running the "altdoc postprocessing" script earlier in the workflow, basically after every Therefore, one solution would be to do this step only in the
About accessing docs inside R with Note that the solution probably shouldn't come from @eitsupi I'd like to have your opinion on this. Does this workflow make sense to you? Do you have other ideas? |
@etiennebacher Thanks for the detailed explanation. I think the solution is reasonable. |
@etiennebacher Any update on this? |
I had started working on this but I don't think the search was better in the end. My progress is here: https://github.com/pola-rs/r-polars/tree/rework-docs-workflow I'll explore more, but we might have to wait for squidfunk/mkdocs-material#6307 |
Thanks for working on that. My other question was whether it might be worth moving from Mkdocs Material to Quarto, as Mkdocs Material is very powerful but has a lot of proprietary notations that would benefit this repository less. |
I'm not convinced it's worth moving to Quarto. I can try to make a small demo when I have time, but from what I can see on the
Not sure I understand, what do you mean by proprietary notations? |
There is no doubt about this.
If we can use these, the website will look much better. |
I don't see obvious features that would make the website better, but if you list some I can take care of including them |
Author of Material for MkDocs here! We'd be happy to get you guys as a beta tester once we have the next search preview available. In the meantime, you can already test the research preview 2, which should improve accuracy. We really would love more feedback on this, because we finally want to build a search that doesn't suck |
Sounds great, thanks for your comment @squidfunk! I think it is really great that Material for Mkdocs provides a great local search feature out of the box. |
The search doesn't take into account the function names in the sidebar in "Reference", which makes the search experience a bit useless. For example, searching "sum_horizontal" doesn't point to
pl$sum_horizontal()
but only shows the output when we print all methods in one of the examples:The text was updated successfully, but these errors were encountered: