Closed laurentsimon closed 1 month 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
This looks great! Let's do it.
I'll add to the v1 release milestone, since it's good to release with some documentation
There is some work towards this done in #279, but there are a few open questions still:
__init__.py
filesmain
pdoc
CLI args, but there are other ways of ignoring files.slsa_for_models
documentation. (https://github.com/sigstore/community/pull/480 and https://github.com/sigstore/community/pull/481)You can see an example of the documentation generated in the action run by downloading the artifact.
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
hatch
.You can see the latest action run and artifact from the PR.
If there's a tool to auto-generate / update documentation based on the doc in the code, that'd be helpful.
@mihaimaruseac @spencerschrock