Skip to content
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: lesson on the different ways to document code #89

Open
lwasser opened this issue Oct 28, 2024 · 1 comment
Open

Add: lesson on the different ways to document code #89

lwasser opened this issue Oct 28, 2024 · 1 comment

Comments

@lwasser
Copy link
Member

lwasser commented Oct 28, 2024

https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/document-your-code-api-docstrings.html

We have the above page in our guidebook but a more robust page on the different types of documentation and how to add it would be useful. This would include

  • reference and links to how expressive naming contributes to documentation

  • How and when to add docstrings

  • How to add docstring examples

  • How to call help / see how the docstrings appear to a user

Notes on how docstrings become critical when adding API docs (as a small section at the end).

@sneakers-the-rat
Copy link
Contributor

There are a few of these floating around from CSCW/STS people that are better than this, but a typology of documentation i find helpful:

  • API docs - how does the code work
  • Narrative docs - why does the code work that way
  • Tutorial docs - how do i use the code
  • Examples/notebooks - how the code is supposed to be used

would be nice to have an overview like this somewhere, I think it's in a few places and in the structure of that section of the guide, but seems like "overview" material :)

(sorry if this isn't waht you meant in this issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants