-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
WIP: Json documentation generation #1775
Conversation
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
@daspecster From https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1775/commits it appears some of the commits have @jgeewax and @callmehiphop emails in them (which is why the CLA bot is angry). |
@@ -0,0 +1,160 @@ | |||
{ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
High level comment: It looks like you've had to write the majority of the parser from scratch (i.e. have your own representations of |
Yeah, I think I'm probably going to drop |
Also, @dhermes for the ci bot, should I just squash those commits? I didn't want to leave out the log of their contributions. |
I don't particularly mind about the CI, though those initial commits aren't necessarily needed for your work. |
|
||
def generate_doc_types_json(modules, types_file_path): | ||
doc_types_list = [{ | ||
"id": "gcloud", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Nice -- this is awesome. Thanks for cranking on it. |
CLAs look good, thanks! |
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
The "continuation line" lint failures are obnoxious: finding the style which passes both |
@daspecster Those bits of narrative are a definite improvement. |
LGTM |
Ok thanks! Should we trim the TOC back a bit? |
@dhermes, I'll fix that formatting issue and I also just noticed that I broke the sub nav links with my last push. |
7610b13
to
820f2ac
Compare
Ok! Have another look through and LMKWYT |
The docstring examples on the datastore landing page still look borked: http://daspecster.github.io/gcloud-python/#/docs/master/gcloud/datastore The snippet captions appear to have regressed: http://daspecster.github.io/gcloud-python/#/docs/master/gcloud/bigquery http://daspecster.github.io/gcloud-python/#/docs/master/gcloud/pubsub |
Testing deploy with 1:1 class:json. Add overview.html Deploy script working now in testing. Fix code blocks. Add href support. Add snippets to base service module. closes googleapis#1951 Fix types generation. Fix linking. Fix external github links. Update gcloud-commit site files. Swtich to live site generation. clean up manifest for starters. Remove old example detection code. Update TOC.
I think I somehow squashed the snippet title code out. I'll try and redo it real quick. |
@tseaver fixed! http://daspecster.github.io/gcloud-python/#/docs/master/gcloud/pubsub Not sure how that got lost, I think I may have lost the commit in rebasing or something. |
@daspecster The http://daspecster.github.io/gcloud-python/stable/bigquery-usage.html page is still showing the pre-snippet examples: maybe that will get fixed when you merge? |
@tseaver Oh sorry, I pushed |
Let me know if there is anything that's a show stopper here. I would like to try and get this merged today if possible. |
LGTM |
I'm going to merge this at 2pm EST unless I hear otherwise. Just to give everyone a chance to chime in. |
Travis master build that I'm watching for this https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/146717128 |
scripts/generate_json_docs.py
is now generating parsable JSON for the gcloud-common site generator.As well as building a
types.json
file.Several things are still in progress...
gcloud.datastore._generated.query_pb2.Query
__init__.py
'sgenerate_json_docs.py
needs to be added to the build process and documented better.