You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Find a way to share the HTML + CSS for our gcloud-* docs ? #1094
UPDATE: I think we should consider just using readthedocs and maybe customizing their theme.
Sharing themes:
I think if we can find a way to generate a JSON output of our docs like the dox script does, we could use the exact same theme. I would really really like that.
I totally get that this is "the Python way to host docs" -- I'm all for it in addition to the gcloud themed docs, the same way I'm all for Javadocs for gcloud-java and Godocs for gcloud-golang (and MSDN looking docs for gcloud-dotnet when we do it). The branding piece is important as well, and I'm fine with us investing the time to continue maintaining these.
Am I correct in the assumption that RTD / Javadocs / etc should take relatively small amounts of work going forward?
I'm open to it but don't want to write our own custom docs builder. I think the readthedocs.org build script creates the JSON for something (not sure what it's used for).
I was just making a general statement that we shouldn't put too much work in, since the payoff wouldn't be that large (and since we already have docs).
I think I hear what you're saying -- I'm trying to say "the branded site matters a lot", so unless we're talking about a 6-month, 2-person full-time project... I think we should definitely explore.
I think the effort to move gcloud-nodes site to gcloud-common would be pretty minimal, imo the biggest part would be coming up with a common format for the JSON.
I think finding a common format would be nice. As it is now, the JSON we get has a lot of extra junk in it we don't need. We'll just need to decide what those items are, then post-process our JSON build process.
Method name
Private?
Description
Example
Parameters
Name
Type
Is a custom type?
Optional?
Can be null?
Line of code (this could be optional)
The node docs site is very closely linked to our library's directory structure, which is also our class hierarchy...
I'm not sure it's possible to have all languages spit out files by the same structure (docs/json/module/submodule.json) -- if it is, that's a relief. If not, we'll have to figure that out.
Anyone following along here, we've shifted the discussion over to gcloud-common: https://github.com/GoogleCloudPlatform/gcloud-common/issues/33 -- we're finalizing the schema, so please weigh in if you have any objections or just subscribe to stay updated.
Activity
jgeewax commentedon Aug 26, 2015
/cc @mpmcdonald
jgeewax commentedon Aug 26, 2015
Maybe we can export stuff via http://sphinx-doc.org/builders.html#sphinx.builders.html.JSONHTMLBuilder ?
dhermes commentedon Aug 26, 2015
I'm open to it but don't want to write our own custom docs builder. I think the readthedocs.org build script creates the JSON for something (not sure what it's used for).
jgeewax commentedon Aug 26, 2015
I think you have to define "docs builder". My suggestion is:
dhermes commentedon Aug 26, 2015
I was just making a general statement that we shouldn't put too much work in, since the payoff wouldn't be that large (and since we already have docs).
jgeewax commentedon Aug 26, 2015
I think I hear what you're saying -- I'm trying to say "the branded site matters a lot", so unless we're talking about a 6-month, 2-person full-time project... I think we should definitely explore.
callmehiphop commentedon Aug 26, 2015
I think the effort to move gcloud-nodes site to gcloud-common would be pretty minimal, imo the biggest part would be coming up with a common format for the JSON.
dhermes commentedon Aug 26, 2015
That would be awesome! 👍
UPDATE: From the latest build, it looks like readthedocs.org builds JSON via
jgeewax commentedon Aug 27, 2015
I gave that a try, looks like it spits out some HTML formatted stuff, not a structured representation of the parse tree.
Adding a custom builder/writer seems to spit out something more useful: https://gist.github.com/jgeewax/c254f8b4d9f48162eaad
Now we just need to massage it to either look like the gcloud-node JSON (https://github.com/GoogleCloudPlatform/gcloud-node/blob/gh-pages/json/master/datastore/query.json) or massage them both into a common shared format....
@stephenplusplus , thoughts?
dhermes commentedon Aug 27, 2015
Not sure if this will make anyone happy but
sphinxhas JS support:http://ericholscher.com/blog/2014/feb/11/sphinx-isnt-just-for-python/
http://sphinx-doc.org/domains.html#the-javascript-domain
e.g. http://bootstrap-datepicker.readthedocs.org/en/latest/
stephenplusplus commentedon Aug 27, 2015
I think finding a common format would be nice. As it is now, the JSON we get has a lot of extra junk in it we don't need. We'll just need to decide what those items are, then post-process our JSON build process.
The node docs site is very closely linked to our library's directory structure, which is also our class hierarchy...
Module -> Sub-module
(ex: Storage -> File, Datastore -> Query)
The site's routing is hooked to this tree, as that's also how the JSON is stored: https://github.com/GoogleCloudPlatform/gcloud-node/tree/gh-pages/json/v0.10.0
I'm not sure it's possible to have all languages spit out files by the same structure (docs/json/module/submodule.json) -- if it is, that's a relief. If not, we'll have to figure that out.
jgeewax commentedon Aug 27, 2015
One extra thing to note is that in Python for example, we have docs that don't correspond directly to a module (ie, https://googlecloudplatform.github.io/gcloud-python/stable/pubsub-usage.html). Do we have anything comparable on gcloud-node?
jgeewax commentedon Aug 27, 2015
I don't think there's a huge issue with the module -> submodule/class structure. We already cram this in a bit with Python based on the left-nav, ie:
jgeewax commentedon Aug 27, 2015
/cc @blowmage @quartzmo -- can you guys chime in about Ruby at all ?
19 remaining items
callmehiphop commentedon Sep 9, 2015
@quartzmo my pleasure!
It's probably worth noting that the syntax for the custom types isn't really set in stone, it's just how we had it previously.
stephenplusplus commentedon Nov 19, 2015
Anyone following along here, we've shifted the discussion over to gcloud-common: https://github.com/GoogleCloudPlatform/gcloud-common/issues/33 -- we're finalizing the schema, so please weigh in if you have any objections or just subscribe to stay updated.
dhermes commentedon Nov 19, 2015
Thanks for
doing thisremembering people watching this threaddhermes commentedon Dec 31, 2015
Closing this since the discussion moved
Auto-update dependencies. [(#1094)](GoogleCloudPlatform/python-docs-s…
chore: move samples from python-docs-sample (#66)
Auto-update dependencies. [(#1094)](GoogleCloudPlatform/python-docs-s…
move monitoring samples from python-docs-samples (#51)
docs: add samples from bigtable (#38)
feat: add support for long-running operations with rest transport. (#…
chore: release 0.58.0 (#1097)
fix: Use except distinct and intersect distinct (#1094)
chore: update system creds (#1094)