UCBoulder / oit-ds-tools-prefect

Common tasks and tools for use in Prefect Flows
0 stars 0 forks source link

Auto-generate Sphinx documentation #53

Closed jashbycu closed 1 month ago

jashbycu commented 1 month ago

This PR is intended to lay the groundwork for autogenerated Sphinx documentation. The idea is that the new Github action will build out HTML documentation for the entire package based on the function signatures and docstrings present in each module, and then publish that through Github Pages. The documentation is automatically generated, so we can focus on just maintaining the README and the docstrings the way we want them, and we'll be able to see them both in the code and through the website.

I tested the sphinx building step on my computer and after much back and forth got it looking correct. But I haven't directly tested the github action since I'm not sure how to do that before actually merging the PR. But you can see the main idea here.

After this goes live, the next step is to edit and adjust the readme and docstrings to better match the sphinx format and include as much useful and up-to-date information as possible. But I'm leaving that for the next PR for the sake of simplicity.

Specific details:

This doesn't impact the actual package and so I don't think I will create a release for it or anything. Just merge. Then a future release can include rewrites/improvements of docstrings until everything looks beautiful.