assistant: Add /rustdoc
slash command (#12453)
This PR adds a `/rustdoc` slash command for retrieving and inserting rustdoc docs into the Assistant. Right now the command accepts the crate name as an argument and will return the top-level docs from `docs.rs`. Release Notes: - N/A
This commit is contained in:
parent
dd328efaa7
commit
08881828ce
8 changed files with 152 additions and 21 deletions
|
@ -23,7 +23,7 @@ pub fn main() {
|
|||
// ```
|
||||
// let html = include_str!("/path/to/zed/target/doc/gpui/index.html");
|
||||
// ```
|
||||
let markdown = convert_rustdoc_to_markdown(html).unwrap();
|
||||
let markdown = convert_rustdoc_to_markdown(html.as_bytes()).unwrap();
|
||||
|
||||
println!("{markdown}");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue