Fix CLI reference URLs to subcommands (#5722)

## Summary

Currently all of these links end up 404-ed. I've added a `#` to fix the
URLs.

<img width="653" alt="Screenshot 2024-08-02 at 12 34 22"
src="https://github.com/user-attachments/assets/9b66adcc-431c-441a-8f4f-1b579472fdce">

## Test Plan

Checked manually.
This commit is contained in:
Ahmed Ilyas 2024-08-02 14:35:33 +02:00 committed by GitHub
parent ff9f3dede1
commit a6416aa450
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 39 additions and 39 deletions

View file

@ -143,7 +143,7 @@ fn generate_command<'a>(output: &mut String, command: &'a Command, parents: &mut
}
let subcommand_name = format!("{name} {}", subcommand.get_name());
output.push_str(&format!(
"<dt><a href=\"{}\"><code>{subcommand_name}</code></a></dt>",
"<dt><a href=\"#{}\"><code>{subcommand_name}</code></a></dt>",
subcommand_name.replace(' ', "-")
));
if let Some(about) = subcommand.get_about() {