Skip to content

Set markdown format via __docformat__ or command line --docformat #169

Closed
@peterjc

Description

@peterjc

I note that pdoc3 supports pure Markdown (with extensions), numpydoc, and Google-style docstrings formats, and you have partial reStructuredText support (see #110).

I do not see that you allow explicit declaration of which markup language (or flavour) is being used, although I see internally variable docformat can be "numpy" or "google".

I would like to be able to set a default at the command line with --docformat ... and/or override this at individual file level using__docformat__ = "..." as done in epydoc. See also rejected PEP258:

https://www.python.org/dev/peps/pep-0258/#choice-of-docstring-format
http://epydoc.sourceforge.net/manual-usage.html

Cross reference mitmproxy/pdoc#153 on the original pdoc project, and #158 on enabling markdown extensions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions