ZIm/crates/assistant/src/slash_command
Marshall Bowers 14c2fab8ab
assistant: Allow /rustdoc to use local docs (#12613)
This PR updates the `/rustdoc` slash command to use local docs built
with `cargo doc`.

If the docs for a particular crate/module are available locally, those
will be used. Otherwise, it will fall back to retrieving the docs from
`docs.rs`.

The placeholder output for the slash command will indicate which source
was used for the docs:

<img width="289" alt="Screenshot 2024-06-03 at 4 13 42 PM"
src="https://github.com/zed-industries/zed/assets/1486634/729112e4-80ca-4f08-bdb3-88fc950351c3">

Release Notes:

- N/A
2024-06-03 16:23:25 -04:00
..
active_command.rs Make slash commands more discoverable (#12480) 2024-05-30 16:45:05 +02:00
file_command.rs Make slash commands more discoverable (#12480) 2024-05-30 16:45:05 +02:00
project_command.rs Make slash commands more discoverable (#12480) 2024-05-30 16:45:05 +02:00
prompt_command.rs Start on a database-backed prompt library (#12468) 2024-06-03 15:58:43 +02:00
rustdoc_command.rs assistant: Allow /rustdoc to use local docs (#12613) 2024-06-03 16:23:25 -04:00
search_command.rs Make slash commands more discoverable (#12480) 2024-05-30 16:45:05 +02:00
tabs_command.rs Make slash commands more discoverable (#12480) 2024-05-30 16:45:05 +02:00