Skip to content

Add entry point to docs #23

@ggabernet

Description

@ggabernet

Hi @bckohan,

thank you for the very useful contribution to sphinx for parsing the typer documentation!

I'm managing to use it properly, but in my package I defined the CLI options in the __main__.py file and simply defined an entrypoint in my setup.py script.

entry_points={
        "console_scripts": ["toolname=toolname.__main__:main"],
    },

When building the documentation with sphinx I get though the __main__ string as the command and not the set up entry point.
Screenshot 2024-05-16 at 13 08 23

Is there a way to configure the parsing for the documentation so that it considers this entrypoint?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions