telegram-rustevalbot icon indicating copy to clipboard operation
telegram-rustevalbot copied to clipboard

Maybe support more crates in /doc command

Open upsuper opened this issue 7 years ago • 3 comments

It's unclear how we would do this, though.

upsuper avatar Sep 06 '18 12:09 upsuper

One possible way to support more crates is to treat the first level as the crate name, and download search-index.js from the proposed documentation when queried.

upsuper avatar Sep 06 '18 22:09 upsuper

To support this, we may need to fix #29 first, at least so that we can handle non-ASCII content for description clipping. This would probably make #30 unnecessary.

Also, #32 may serve as a prerequisite to provide some infrastructure for lazy loading data from docs.rs and dynamically update.

We may also want to save generated fst into files so that we don't need to re-generate them every time the bot restarts.

upsuper avatar Sep 09 '18 12:09 upsuper

We may also want to save generated fst into files so that we don't need to re-generate them every time the bot restarts.

This is now #35.

upsuper avatar Sep 09 '18 12:09 upsuper