Generator
Generate Markdown documentation for a Click command.
| FUNCTION | DESCRIPTION |
|---|---|
generate_docs |
Generate Markdown documentation for a Click command. |
Functions
generate_docs
generate_docs(command: BaseCommand, program_name: str | None = None, header_depth: int = 1, style: str = 'plain', depth: int | None = None, exclude: tuple[str, ...] | list[str] = (), show_hidden: bool = False, list_subcommands: bool = False, remove_ascii_art: bool = False, full_command_path: bool = False) -> str
Generate Markdown documentation for a Click command.
| PARAMETER | DESCRIPTION |
|---|---|
command
|
The Click command to document.
TYPE:
|
program_name
|
The display name used in the heading and usage line.
Defaults to the command's own
TYPE:
|
header_depth
|
Markdown header level for the command title (1-6).
TYPE:
|
style
|
Options rendering style;
TYPE:
|
depth
|
Maximum recursion depth.
TYPE:
|
exclude
|
Dotted command paths to skip (e.g. |
show_hidden
|
Include commands and options marked
TYPE:
|
list_subcommands
|
Prepend a bulleted TOC of direct subcommands at the root.
TYPE:
|
remove_ascii_art
|
Strip
TYPE:
|
full_command_path
|
Use the full command path in headers (e.g.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
str
|
A Markdown string ending with a single newline. |