google-cloud-node icon indicating copy to clipboard operation
google-cloud-node copied to clipboard

Documenting Gapic/Proto (autogen files)

Open callmehiphop opened this issue 10 years ago • 8 comments

Opening an issue to track discussion on how we should go about documenting GAX from within our library.

callmehiphop avatar Aug 15 '16 20:08 callmehiphop

My initial thoughts are that users who take advantage of GAX will be a bit more advanced. That being said, it might not be unreasonable to simply link them to the proto files being used? Then from within our library we can document the methods that expose said APIs v2, v1beta1, etc.

It also might benefit us to look into adding the feature discussed here - https://github.com/GoogleCloudPlatform/gcloud-common/issues/80

callmehiphop avatar Aug 15 '16 20:08 callmehiphop

cc: @jmuk @jmdobry

Is it a requirement for us to display autogen docs, or is linking to proto files sufficient?

stephenplusplus avatar Aug 16 '16 17:08 stephenplusplus

For now at least, I think linking to proto files is sufficient.

jmdobry avatar Aug 16 '16 17:08 jmdobry

Cc: @omaray

We want the documentation for GAX (i.e. LanguageServiceApi). The generated files are more language-idiomatic and serve methods with additional features such as parameter-flattening / page-streaming, that are not seen in the proto files. We will also add auto-generated usage samples to individual method.

jmuk avatar Aug 16 '16 21:08 jmuk

Correct. We want the documentation of GAPIC/GAX to show. Not every API will have a handwritten layer (or at least at the beginning). So we want to show the docs of the auto-gen too.

omaray avatar Aug 17 '16 17:08 omaray

Just tagging as these are related: https://github.com/GoogleCloudPlatform/gcloud-common/issues/207

stephenplusplus avatar Dec 05 '16 16:12 stephenplusplus

@swcloud @callmehiphop

We're live with:

  • Datastore: https://googlecloudplatform.github.io/google-cloud-node/#/docs/datastore/master/v1
  • Logging: https://googlecloudplatform.github.io/google-cloud-node/#/docs/logging/master/v2
  • Pub/Sub: https://googlecloudplatform.github.io/google-cloud-node/#/docs/pubsub/master/v1
  • Spanner: https://googlecloudplatform.github.io/google-cloud-node/#/docs/spanner/master/v1

stephenplusplus avatar Jun 30 '17 14:06 stephenplusplus

@stephenplusplus Looks amazing! We finally did it!! Really appreciate your great work!!!

swcloud avatar Jun 30 '17 16:06 swcloud