This commit is contained in:
cui
2025-11-26 17:47:24 +08:00
committed by GitHub
parent e62cb8f82b
commit c72644f867
3 changed files with 84 additions and 54 deletions

View File

@@ -235,7 +235,7 @@ fn cmd_summary(cmd: &Cmd, indent: usize) -> String {
let cmd_s = cmd.to_string();
let cmd_path = cmd_s.replace(" ", "/");
let indent_string = " ".repeat(indent + (cmd.subcommands.len() * 2));
format!("{}- [`{}`](../cli/{}.mdx)\n", indent_string, cmd_s, cmd_path)
format!("{}- [`{}`](./{}.mdx)\n", indent_string, cmd_s, cmd_path)
}
/// Overwrites the root SUMMARY.mdx file with the generated content.