sigstore / model-transparency

Supply chain security for ML
Apache License 2.0
106 stars 28 forks source link

Automated generation of API docs #209

Closed laurentsimon closed 1 month ago

laurentsimon commented 3 months ago

If there's a tool to auto-generate / update documentation based on the doc in the code, that'd be helpful.

@mihaimaruseac @spencerschrock

spencerschrock commented 3 months ago

Since I happened to look at sigstore-python's docs today, would something like their system work?

uses pdoc to generate HTML documentation for the public Python APIs.

Which they run as part of their CI and deploy to github pages at https://sigstore.github.io/sigstore-python/sigstore.html https://github.com/sigstore/sigstore-python/blob/f9e313eab473503ec688f5a12ed21c81ad9a81f2/.github/workflows/docs.yml

mihaimaruseac commented 3 months ago

This looks great! Let's do it.

I'll add to the v1 release milestone, since it's good to release with some documentation

spencerschrock commented 1 month ago

There is some work towards this done in #279, but there are a few open questions still:

spencerschrock commented 1 month ago

You can see an example of the documentation generated in the action run by downloading the artifact.

mihaimaruseac commented 1 month ago

This looks good to me, thank you!

I think we might need to reorder the files in the repo as they're not in a good shape for packaging to a wheel. I'll read more about this and experiment to see if we can avoid it, otherwise we need to decide if we wait for #240 or we'd have it rebase again

spencerschrock commented 1 month ago

279 has been rebased to account for the layout change in #283, and now makes use of hatch.

You can see the latest action run and artifact from the PR.

spencerschrock commented 1 month ago

https://sigstore.github.io/model-transparency