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

feature: API Documentation #201

Open
dgarros opened this issue Jan 1, 2025 · 0 comments
Open

feature: API Documentation #201

dgarros opened this issue Jan 1, 2025 · 0 comments
Labels
state/backlog This issue is part of the backlog type/feature New feature or request

Comments

@dgarros
Copy link
Contributor

dgarros commented Jan 1, 2025

Component

Python SDK

Describe the Feature Request

It would be good to start publishing the documentation of the API for the Python SDK to help users understand the method available and the different options.

To ensure that the API documentation is always up to date, we need to :

  • Dynamically generate it from the docstring of each method
  • Define a convention for our docstring
  • Enable some rules (D & DOC in Ruff) to validate the presence and the format of our docstring
  • Enable some step in CI to validate that the API doc is up to date.
  • Finish the migration of the doc to this repo task: Migrate documentation #51

Not all methods have a docstring today but this shouldn't stop us from setting up the API doc.

Describe the Use Case

Improve the developer experience when using the Python SDK and make it was easy as possible to interact with Infrahub programmatically

Additional Information

There are a few libraries available around documentation
pdoc looks like a good candidate to generate the API doc but not sure how well it integrates with docusaurus

@dgarros dgarros added the type/feature New feature or request label Jan 1, 2025
@exalate-issue-sync exalate-issue-sync bot added state/need-triage This issue needs to be triaged state/backlog This issue is part of the backlog and removed state/need-triage This issue needs to be triaged labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state/backlog This issue is part of the backlog type/feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant