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

docstrings for SDK reference docs #938

Merged
merged 8 commits into from
Jan 16, 2025
Merged

docstrings for SDK reference docs #938

merged 8 commits into from
Jan 16, 2025

Conversation

hansent
Copy link
Contributor

@hansent hansent commented Jan 13, 2025

Description

Adds proper docstrings to public classes/functions etc in the inference_sdk module so the reference docs get generated meaningfully

Type of change

Docs update

How has this change been tested, please provide a testcase or example of how you tested the change?

locally with mkdocs serve

Any specific deployment considerations

docs build

Docs

lots of docstrings added. I added most of them vial Claude / cursor by prompting it to add docstrings in google format. Looked pretty good at generating one sentence descriptions and parameter / return lists

@@ -167,6 +167,7 @@ scratch
docs/workflows/blocks/*
docs/workflows/kinds/*
docs/workflows/gallery/*
docs/reference/*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these files get autogenerated via gen_ref_pages.py / gen-files mkdocs plugin

@hansent hansent merged commit d42c522 into main Jan 16, 2025
35 checks passed
@hansent hansent deleted the sdk-reference-docs branch January 16, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants