-
Notifications
You must be signed in to change notification settings - Fork 0
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
Standardize documentation #91
Comments
Note: decided to use Working on integrating this into the CI. |
The documentation pipeline has been merged into main. Next step is to start making nicer docstrings for everything. |
I added an example docstring here: https://github.com/jcrozum/balm/blob/drivers-docs/balm/drivers.py that showcases the expected syntax for cross-linking, descriptions, parameters, return values, and examples. |
@daemontus I am working my way through the docs and I have a couple of questions for you.
|
Essentially, an alternative design would turn this into a class hierarchy, in which case Python would be able to cast between these types automatically in most cases (i.e. I think I should be able to refactor some of these to make them more readable/obvious.
|
Thanks, I think I get it (mostly anyway). No need to refactor; I'll get to it as I go through the docs. If I run into any additional questions while I'm at it, I'll ping you. |
We need to make sure the docstrings all describe inputs, outputs, etc. in a standard format, ideally with examples. Unless anyone objects, I'll use the "numpy docs" format; this is what
pystablemotifs
uses and it's pretty common in the scientific Python space. Then, we can runpdoc
or similar to generate the api reference and use something likepydoc
to test the docstring examples. It's likely that we can add this step to the CI. I will take a look at howpolars
does it; I've been contributing to their documentation and the process works very smoothly. We should also make some basic usage examples to help new users get started. In summary, here are the action items:pdoc
(or something like it).The text was updated successfully, but these errors were encountered: