docs(mkdocs): various updates to reflect v0.1.25-dev.0

This commit is contained in:
LGUG2Z
2024-04-28 13:51:08 -07:00
parent 383533e2d9
commit e363a494c3
16 changed files with 248 additions and 167 deletions

View File

@@ -1257,9 +1257,15 @@ fn main() -> Result<()> {
let subcommands = cli.get_subcommands_mut();
std::fs::create_dir_all("docs/cli")?;
let ignore = [
"docgen",
"alt-focus-hack",
"identify-border-overflow-application",
];
for cmd in subcommands {
let name = cmd.get_name().to_string();
if name != "docgen" {
if !ignore.contains(&name.as_str()) {
let help_text = cmd.render_long_help().to_string();
let outpath = format!("docs/cli/{name}.md");
let markdown = format!("# {name}\n\n```\n{help_text}\n```");