2025-04-07 21:58:47 -04:00
|
|
|
use crate::ui::render::markdown::Markdown;
|
2025-02-17 17:55:28 -05:00
|
|
|
|
2025-04-07 21:58:47 -04:00
|
|
|
pub fn to_widget(topic: &str) -> Markdown {
|
2025-02-17 17:55:28 -05:00
|
|
|
match topic {
|
2025-04-07 21:58:47 -04:00
|
|
|
"navigate" => Markdown::from_str(include_str!("../../../docs/navigation.md")),
|
|
|
|
"edit" => Markdown::from_str(include_str!("../../../docs/edit.md")),
|
|
|
|
"command" => Markdown::from_str(include_str!("../../../docs/command.md")),
|
|
|
|
"visual" => Markdown::from_str(include_str!("../../../docs/visual.md")),
|
|
|
|
_ => Markdown::from_str(include_str!("../../../docs/intro.md")),
|
2025-02-17 17:55:28 -05:00
|
|
|
}
|
|
|
|
}
|