GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add JSON Documentation · Issue #2352 · googleapis/google-cloud-python

Add JSON Documentation #2352

New issue
Copy link
New issue
Copy link
Closed
Closed
Add JSON Documentation#2352
Copy link
Assignees
lukesneeringer
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.

Description

@daspecster
daspecster
opened on Sep 19, 2016
Issue body actions

This issue is for tracking the requirements, issues and solutions in generating JSON for the gcloud-common Angular site.

Known Requirements

  • Extracting sphinx code examples and place them in methods[{examples:[]}].
  • Generate table of contents from sphinx toc. (index.rst).
  • Class linking should be added. i.e. support :class:gcloud.datastore._generated.query_pb2.Query, this is partially done through types.json.
  • Source code links (base on relative repo path. i.e. /google/cloud/datastore/client.py#L25).
  • "Getting Started" and "Guide" type pages need to be ported.
  • Ensure that snippets are pulled in properly from docs/*_snippets.py.
  • Turn on auto gcloud-common/site deployments.

Discussions

  • How much data is available in Writers https://groups.google.com/forum/#!topic/sphinx-users/-J1IOOBd-0g

Resources

  • http://www.arnebrodowski.de/blog/write-your-own-restructuredtext-writer.html
  • https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/
  • https://github.com/sphinx-doc/sphinx
  • https://bitbucket.org/birkenfeld/sphinx-contrib

Activity

  1. daspecster
    added
    docs
    on Sep 19, 2016
  2. dhermes commented on Sep 19, 2016

    @dhermes
    dhermes
    on Sep 19, 2016
    Contributor
    More actions

    @daspecster Did you mean to use gcloud.datastore._generated.query_pb2.Query as an example? Those generated files don't have any docs.

  3. daspecster commented on Sep 19, 2016

    @daspecster
    daspecster
    on Sep 19, 2016
    ContributorAuthor
    More actions

    Actually yes I did.

    We would need to do one of two things with a reference to generated code.

    1. Strip the directive and just not link it anywhere.
    2. Just link it to that file/line in the repo (which is what I did/tried to do before since I generated JSON for everything under gcloud/, now google/cloud).

    The bigger thing is generating types.json, I just used that one to illustrate this case.

  4. dhermes commented on Sep 19, 2016

    @dhermes
    dhermes
    on Sep 19, 2016
    Contributor
    More actions

    I am 👎 on linking into the source. Those protoc generated files are not meant for human eyes and are very nasty to look at.

  5. daspecster commented on Sep 19, 2016

    @daspecster
    daspecster
    on Sep 19, 2016
    ContributorAuthor
    More actions

    Sorry, I wasn't very clear on that.

    Not linking to the source in this case(however that is a required feature for documented modules,classes,methods,params,variables.

    I was generating a JSON file for the _generated files as well since I was processing all python files under gcloud at the time. So the JSON representation was there, but not linked in the TOC. So it just means when there's a reference to one of those in a docstring, the :class: directive works as expected. That is, they could click on the class name and get a description of the module/class/method/whatever.

  6. dhermes commented on Apr 5, 2017

    @dhermes
    dhermes
    on Apr 5, 2017
    Contributor
    More actions

    @lukesneeringer is this project still in some long-term "TODO"?

  7. lukesneeringer commented on Apr 5, 2017

    @lukesneeringer
    lukesneeringer
    on Apr 5, 2017
    Contributor
    More actions

    I had no idea this was even a thing.

  8. lukesneeringer
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Apr 19, 2017
  9. lukesneeringer commented on Aug 8, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 8, 2017
    Contributor
    More actions

    Denied.

  10. lukesneeringer
    closed this as completedon Aug 8, 2017
  11. JustinBeckwith
    assigned
    lukesneeringer
    on Feb 1, 2021
  12. parthea
    added a commit that references this issue on Oct 21, 2023

    Asset: Add Real Time Feed API Sample Code [(#2352)](GoogleCloudPlatfo…

    b6db92d
  13. parthea
    added a commit that references this issue on Nov 24, 2025

    fix: allow Protobuf 6.x (#2352)

    422d926
  14. parthea
    added 2 commits that reference this issue on Apr 1, 2026

    docs: Add code examples to configuration docstrings (#2352)

    9ae0c8a

    chore: librarian release pull request: 20260303T181914Z (#2489)

    72b1c96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lukesneeringer
    lukesneeringer

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.