Skip to content

Publish API docs to GitHub pages#172

Merged
anuraaga merged 3 commits intoconnectrpc:mainfrom
anuraaga:apidocs
Mar 17, 2026
Merged

Publish API docs to GitHub pages#172
anuraaga merged 3 commits intoconnectrpc:mainfrom
anuraaga:apidocs

Conversation

@anuraaga
Copy link
Collaborator

When reviewing #84, I had actually completely forgotten wanting to not drop it at least without knowing how to handle API docs, which I think are helpful to have.

This restores only the API docs back for publishing to GitHub pages. I figure there's no practical way to integrate these into docusaurus so we can add a link to https://connectrpc.github.io/connect-python/api/ from the official docs. What do you think?

Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
@anuraaga anuraaga requested a review from a team March 17, 2026 06:17
Copy link
Member

@stefanvanburen stefanvanburen left a comment

Choose a reason for hiding this comment

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

I'm +1 on having these here; makes sense to just link out to them from the connectrpc.com site. (Hopefully zensical doesn't ship too many breaking changes as they iterate 😄)

Can we perhaps add a justfile or similar target for running the docs locally? I could probably figure it out but we ought to make it easy to check.

Copy link
Member

Choose a reason for hiding this comment

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

this seems to have issues rendering in GitHub, can we just double-check that it renders on the site?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops yeah - had given it a try and gave up on it, forgot to delete

Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
Copy link
Member

@stefanvanburen stefanvanburen left a comment

Choose a reason for hiding this comment

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

great, happy to land this and iterate over time. Just dropping a few things I noticed from looking through the docs.

Looks like we're inconsistent in just a few places about ending our descriptions with periods; I think they all ought to end with one.
Image

The description here leaks the type; not sure what's different but looks different from the others:

Image

I imagine we can link stuff like modules even further with more syntax in our docstrings; not sure what zensical uses?

Image

Lastly, I think we can probably add more context to some of the more complex types, like ConnectASGIApplication.endpoints, to say that this is generally passed directly from generated code from the plugin, or something to that effect.

Anyway, this is excellent as-is, thanks for reviving it.

@anuraaga anuraaga merged commit 9cb72bd into connectrpc:main Mar 17, 2026
24 checks passed
stefanvanburen added a commit that referenced this pull request Mar 17, 2026
Just a first pass at improving the rendering of some of these, based on
the review I gave.

Effectively:

* Add periods consistently
* Add some links
* Mention generated code for endpoints (this maybe could be extended
  further?)
* Make a couple docstrings more consistent with others

I also noticed while iterating on this locally that `zensical serve`
does not seem to consistently cache-bust when changing these docstrings;
for now, I'm just wiping the cache as a part of the justfile target, and
am planning to report upstream.

Ref: #172 (review)

Signed-off-by: Stefan VanBuren <svanburen@buf.build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants