-
-
Notifications
You must be signed in to change notification settings - Fork 144
Set markdown format via __docformat__ or command line --docformat #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Happy to change default param value to Lines 378 to 379 in b8758dd
Shouldn't be hard at all. PR welcome. Not so thrilled about the CLI switch. What case doesn't work for you that you wanted to limit to either 'numpy' or 'google'? |
Personally I want to use |
This should now work. To set it from the command line, one can use: Whether to support reStructuredText, and how, is a different issue (#110). |
E.g. --config='docformat="numpy"' Fixes #169
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.
The text was updated successfully, but these errors were encountered: