From 64a9c0bf0127741c9873d199474d1d52b6758db3 Mon Sep 17 00:00:00 2001 From: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com> Date: Tue, 1 Apr 2025 08:43:42 +0200 Subject: [PATCH] Update the examples link in commands Updated the link of navi's cheatsheet in welcome.rs Updated the link of the cheatsheet example and the configuration example in src/commands/info.rs Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com> --- src/commands/info.rs | 4 ++-- src/welcome.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/info.rs b/src/commands/info.rs index 7f450e0..57d52c5 100644 --- a/src/commands/info.rs +++ b/src/commands/info.rs @@ -23,10 +23,10 @@ impl Runnable for Input { let info = &self.info; match info { - Info::CheatsExample => println!("{}", include_str!("../../docs/cheat_example.cheat")), + Info::CheatsExample => println!("{}", include_str!("../../docs/examples/cheatsheet/example.cheat")), Info::CheatsPath => println!("{}", &filesystem::default_cheat_pathbuf()?.to_string()), Info::ConfigPath => println!("{}", &filesystem::default_config_pathbuf()?.to_string()), - Info::ConfigExample => println!("{}", include_str!("../../docs/config_file_example.yaml")), + Info::ConfigExample => println!("{}", include_str!("../../docs/examples/configuration/config-example.yaml")), } Ok(()) } diff --git a/src/welcome.rs b/src/welcome.rs index 520f04f..8d9e722 100644 --- a/src/welcome.rs +++ b/src/welcome.rs @@ -3,7 +3,7 @@ use crate::prelude::*; use crate::structures::fetcher; pub fn populate_cheatsheet(parser: &mut Parser) -> Result<()> { - let cheatsheet = include_str!("../docs/navi.cheat"); + let cheatsheet = include_str!("../docs/examples/cheatsheet/navi.cheat"); let lines = cheatsheet.split('\n').map(|s| Ok(s.to_string())); parser.read_lines(lines, "welcome", None)?;