-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Description
When documenting CLI, one can choose to document all the commands in a single file, or to split the documentation to multiple files by subgroups.
Right now, if I want to document only the subcommand I need to specify the subcommand as my command in the block. However, in that way the parent command isn't shown in the command path. This might cause some confusion
Example
consider that I have a group named my_cli
and a subcommands my_sub1
and my_sub2
and I want to document only my_sub1
.
If I write:
::: mkdocs-click
:module: app.cli
:command: my_sub1
The path printed is my_sub1 [OPTIONS] COMMAND
and not the entire path my_cli my_sub1 [OPTIONS] COMMAND
.
The only way is to write:
::: mkdocs-click
:module: app.cli
:command: my_cli
And to document everything in the same file.
The Desired Ability
One should be able to specify which subcommands to display, not just depth. that means that the block should look like:
::: mkdocs-click
:module: <module>
:command: <command>
:subcommands: [<list of subcommands>]