Skip to content

Example from README not working #18

Open
@fepegar

Description

Hi, and thanks for this library!

I'm trying the example from the README, but I'm getting the following error:

mkdocs_typer._exceptions.MkDocsTyperException: 'cli' must be a 'typer.main.Typer' object, got <class 'function'>

If I use :command: my_app (instead of cli), I get no error, but I see a big my_app in the docs:

Screenshot 2023-11-27 at 01 52 12
  1. Is there a bug?
  2. Am I doing something wrong?
  3. Is it possible to hide that my_app header? I tried playing with :depth: with no luck.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions