-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
API documentation #2441
API documentation #2441
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2441 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 13 13
Lines 2582 2582
=======================================
Hits 2580 2580
Misses 2 2 Continue to review full report at Codecov.
|
Awesome. Are the |
@MaxGhenis The |
@Peter-Metz @MattHJensen Does this look like complete enough API docs that we can include this here (and perhaps remove the old https://taxcalc.readthedocs.io/en/latest/ ? |
@jdebacker this looks nice! A couple things that I thought about:
|
Hey @jdebacker, this is looking great. I tried building the docs from your fork, but I'm running into this error message:
I have Jupyter-Book 0.7.2 installed and am running the command Any tips? |
@Peter-Metz I think this maybe a version issue with Jupyter-Book. I'll update my environment and fix to compile with the latest version (I believe I was using 0.7.1, and there have been changes to the table of contents structure lately). @hdoupe asks:
I suppose it would be nice to know these methods are available, but I don't know how you pull that into the Sphinx docs when the information is in docstrings in an inherited classes module. Do you know how to make this work? |
|
||
.. autoclass:: Policy | ||
:members: read_json_reform, implement_reform, parameter_list, | ||
set_rates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdebacker I think you can just add the method names here and jupyter book will pull them off the Policy
class. When I did this locally, I lost the link to the source code, but that's probably ok for these methods.
@hdoupe Thanks for the note about including methods from the inherited @Peter-Metz I've updated the TOC structure to work with Jupyter-Book 0.7.3. See if things compile for you now. JB is under rapid development, so they had made changes to the TOC structure since I opened this PR using 0.7.1. |
@jdebacker sorry for the delay on this. The API looks great. My only two comments:
|
@jdebacker, I expect this will be very helpful to users. Thank you. I just added a WIP tag to the title for the resolution of @Peter-Metz's feedback. |
@Peter-Metz suggests:
I agree. This is beyond the scope of this PR, however. Here we are only adding docs on the python API. I think there are some existing docs on the CLI, right? If so, those should be brought over to the JupyterBook docs in another PR. |
@jdebacker makes sense to me! It turns out there is extensive documentation on the CLI (which I didn't know existed!). I still think it would be useful to have an API-style reference that lays out all the flags/options. I would be happy to help put this together in a separate PR. |
@Peter-Metz the
We can either hold off on merging until Jupyter-Book fixes whatever issue is causing this behavior or we can be ok with this small bug and merge in this additional documentation for the Python API now. I'd vote for the later because I don't think it's a big deal, but will follow what you think is best. |
@jdebacker agreed, I don't think that should hold this PR up. cc @MattHJensen I think this PR is good to go |
Thanks a lot, @jdebacker, these look great. And thanks for the review @Peter-Metz. Merging. |
This PR adds documentation for the Tax-Calculator API to the TC Jupyter Book.