-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add Google style doc string support (original: What's good format for portray as docstring?) #47
Comments
Hi @ki4070ma, Right now only markdown formatting of doc strings is supported. I'm going to convert this into an enhancement request for GoogleDoc formatting support, and hopefully get to it soon. Thanks! ~Timothy |
One of the major blockers to moving a lot of internal projects I maintain at my workplace to mkdocs (I currently use a combination of sphinx + napoleon + recommonmark to achieve this, but I miss the mkdocs theme) has been the inability to auto-generate docs from docstrings. I see that pdoc3 supports this, but I am also aware of the controversy behind that fork and the reason pdocs was created. It would be amazing if we could somehow implement Google style parsing in pdocs and in turn portray. Are there any active development plans on this enhancement? If not I might take a shot at it later down the month. |
Currently, there is a desire to support this, but no direct work in progress. Any help in this area would be greatly appreciated! |
How funny! I also looked for a replacement for I'm currently porting the Sphinx napoleon extension to May be my work can be slightly extended to give option to convert both to markdown and RST. Is it unthinkable ? Just trying to see if we can collectivise our coding efforts here... I think forking napoleon to process docstrings is the way to go because it's been massively used and it's pretty battle tested. But yeah.. it only speaks reStructuredText for now. |
#69 should have fixed this, I forgot to refer to this issue in there... |
Hi, I'm the current maintainer of pydoctor.
It would require separating the parsing code in napoleon's Looking at how pdocs solved it: if I understand correctly, it uses One concern I have is how complete the parsers in In any case, I think that the Python community as a whole benefits a lot from good documentation, so if there is anything we can do to help each other improve documentation tooling or specs/conventions, I'm interested. |
Hi all, is there any news on this? I am on the latest version of both |
I use google style as docstring.
But it doesn't look good when generating doc by portray.
Do I need to follow the same way on portray's doc?
Or can I generate better doc with google docstring style somehow?
This might be enhancement.
Not good
https://ki4070ma.github.io/python-client/reference/appium/webdriver/extensions/device_time/
Example
https://timothycrosley.github.io/portray/reference/portray/render/
Google style as docstring
https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
The text was updated successfully, but these errors were encountered: