Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign updocstrings styles #89
Comments
This comment has been minimized.
This comment has been minimized.
|
This is all that happens: https://github.com/BurntSushi/pdoc/blob/master/pdoc/templates/html.mako#L62-L72 In my opinion, best practice is to simply describe the contract of the function you're documenting or the invariants of the data you're documenting. The latter can be somewhat tricky to do in Python, but it is one reason why I tend to also document the types of parameters when it makes sense too, typically by incorporating the type into the description of the contract.
|
This comment has been minimized.
This comment has been minimized.
|
Thank you. |
This comment has been minimized.
This comment has been minimized.
peterjc
commented
Aug 24, 2017
|
See also #111 for supporting other markup languages like RST, epytext, ... as well as markdown. |
igordertigor commentedJan 25, 2016
Does (and how) pdoc support different established docstring styles (e.g. google style, numpy style, javadoc, reST)? Are there other "best practice" docstring conventions for formatting docstrings using markdown?