Skip to main content

docs

Generate Markdown docs for a Typer app.

def docs(
ctx: typer.Context,
name: str = "",
output: Path | None = None,
title: str | None = None
) - > None

Generate Markdown docs for a Typer app.

Parameters

NameTypeDescription
ctxtyper.ContextThe Typer context object used to manage state and access the underlying Click command structure.
namestr = ""The name of the CLI program to be displayed within the generated documentation.
output`PathNone` = None
title`strNone` = None

Returns

TypeDescription
NoneNothing is returned; the generated documentation is either printed to stdout or written to a file.