mirror of
https://github.com/zaphar/sheetsui.git
synced 2025-07-21 20:39:47 -04:00
This allows us to have better styling for the help text as well providing some hooks for help navigation later.
12 lines
515 B
Rust
12 lines
515 B
Rust
use crate::ui::render::markdown::Markdown;
|
|
|
|
pub fn to_widget(topic: &str) -> Markdown {
|
|
match topic {
|
|
"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")),
|
|
}
|
|
}
|