-
Notifications
You must be signed in to change notification settings - Fork 4
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
RTM command #49
Comments
This seems useful to me. |
I was thinking the same thing. |
LETS FUCKING GO |
Where are we parsing rst? |
I thought we needed to to get doc information. (If we make a RTFM command in this issue) |
Sphinx parses the docstrings and creates an objects.inv file. That's what I need to parse. I suppose it could be written in rust, but I'm going to figure it out in python first and then we can RIR if we want.
Sounds good to me, as long as mCodingBot can use the library without doing anything with rustc. |
assign this to me |
unassign this to me |
Author of Depending on exactly what you need to do, Check out the |
@bskinn we already have a utility for fuzzy searching that uses RapidFuzz. I think it's good enough, but I don't know how it compares to what you're suggesting. Edit: code is here: https://github.com/mcb-dev/mCodingBot/blob/main/mcodingbot/utils/search.py |
That's probably already better than what I have a grand plan to implement a plugin system for |
It would be cool to have a slash command for searching sphinx documentation. All sphinx docs generate an
object.inv
file, which can be downloaded, parsed, and cached.For example, the python docs: https://docs.python.org/3/
The objects.inv file is: https://docs.python.org/3/objects.inv
I found some great documentation on how to parse this https://sphobjinv.readthedocs.io/en/latest/syntax.html. Once parsed, it can be cached, and then we can probably use some sort of fuzzy search. The cached version of documentation can be set to expire after 24 hours.
For the slash command, I was thinking something like this:
The docs-url can have autocomplete (and we can list more common projects), but will let you specify any valid sphinx url. If the url hasn't been used yet, it'll download/parse/cache it first.
The text was updated successfully, but these errors were encountered: