Skip to content
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

Auto-generated Documentation via CI/CD #23

Open
ric-evans opened this issue Mar 3, 2022 · 3 comments
Open

Auto-generated Documentation via CI/CD #23

ric-evans opened this issue Mar 3, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ric-evans
Copy link
Member

After #22, README contents are published to PyPI. This may not be enough documentation. If that's the case, look into auto-publishing "Read the Docs" style documentation in a similar (if not the same) GH Action as #22.

@ric-evans ric-evans added the enhancement New feature or request label Mar 3, 2022
@ric-evans ric-evans self-assigned this Mar 3, 2022
@ric-evans
Copy link
Member Author

If we go this route, we can also add a "read the docs" badge: https://shields.io/category/build

@ric-evans
Copy link
Member Author

ric-evans commented Sep 16, 2022

Using pdoc + docs.icecube.aq/:

Make a GH Action Package with:

  1. https://github.com/mitmproxy/pdoc/blob/main/.github/workflows/docs.yml#L16-L32
  2. https://github.com/WIPACrepo/publication-web-db/blob/master/.github/workflows/pr.yml#L40-L45
    • with "@htmlcov.tar.gz" replaced by a tar of the HTML file-tree
    • replace path=$GITHUB_REPOSITORY/${{ github.head_ref }}/${{ github.sha }} with path=$GITHUB_REPOSITORY/v#.# and then add a redirect for docs.icecube.aq/$GITHUB_REPOSITORY
  3. add a link to documentation on the README (as a badge?)

@ric-evans ric-evans changed the title "Read the Docs" Style Documentation CI/CD Auto-generated Documentation via CI/CD Sep 16, 2022
@dsschult
Copy link
Contributor

There is also https://mkdocstrings.github.io/recipes/#automatic-code-reference-pages. This might be nicer for larger projects, since you can have some overview pages in pure markdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants