-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
[FeatureRequest] Support the numpy docstring format #7
Comments
With the numpy format, it feels like we're getting closer to rst again 😕 But I (now) see the value of supporting multiple formats. As said in this comment, we could implement multiple format parsers for docstrings. I think we can also get inspiration (or re-use the code) from sphinx.ext.napoleon. Maybe the code responsible for parsing the docstrings should also be split into another Python package. I think other projects could benefit from such a library. Design propositions and pull requests are welcome as I don't have much time these days to tackle this 🙂 |
Personally I think that if one wants numpy formatting, they should use a different extension. Each one should focus on its own strengths. |
Like this one? I haven't tried it out yet as I only searched for it after reading this issue but might be worth looking into. |
Yes! Ideally this package would be extended to support the other requested formats as well as the one currently in use in |
Moving this issue over pytkdocs which is now responsible for docstring parsing! |
Pull requests are welcome. All the code related to the parsing of docstrings is in https://github.com/pawamoy/pytkdocs/blob/master/src/pytkdocs/parsers/docstrings.py. Feel free to try and add support for other docstrings format! If you have any questions, ask on Gitter: https://gitter.im/pytkdocs/community |
There's a base parser now (#28). This should ease (slightly) the process of implementing another parser. Just copy paste the google parser into a new
|
Issue #7: #7 PR #87: #87 Co-authored-by: Achille Murangira <[email protected]> Co-authored-by: Timothée Mazzucotelli <[email protected]>
The numpy docstring format is very popular in the scientific python community.
The numpy docstring format is supported by the
numpydoc
andnapoleon
sphinx extensions.The text was updated successfully, but these errors were encountered: