Skip to content

Generate docs and host on googlecloudplatform.github.io/gcloud-node ?  #19

Description

@jgeewax

Some options I've seen:


I personally really like the docs for Express: http://expressjs.com/3x/api.html

Activity

  1. rakyll commented on Jul 21, 2014

    @rakyll
    Contributor

    My personal choice is dox, it works nicely with jsdoc and allows examples to be documented inline. The downside is that it doesn't generate pages, but provides JSON with extracted meta information.

  2. rakyll commented on Jul 29, 2014

    @rakyll
    Contributor

    @aliafshar is working with another person on the gcloud homepage. Once they come up with an initial template, we can generate Dox docs.

  3. stephenplusplus commented on Aug 12, 2014

    @stephenplusplus
    Contributor

    @rakyll can you catch this issue up with any developments? I'm happy to start going through the code and adding examples, as well as spreading the readme out to new .md files.

  4. silvolu commented on Aug 12, 2014

    @silvolu
    Contributor

    @stephenplusplus I have a meeting today at 14 Pacific to discuss about templates etc.
    Starting to add examples through the code sounds good to me, unless @rakyll has some other coding tasks in mind for you.

  5. stephenplusplus commented on Aug 13, 2014

    @stephenplusplus
    Contributor

    Hope the meeting went well! I played around with JSDoc today - here's an example of Dataset, the generated Markdown, and its source.

  6. rakyll commented on Aug 13, 2014

    @rakyll
    Contributor

    unless @rakyll has some other coding tasks in mind for you.

    SGTM.

  7. silvolu commented on Aug 13, 2014

    @silvolu
    Contributor

    @stephenplusplus could you put the PubSub refactoring on ice for the moment and work on docs for Datastore and Storage? we need to focus on completing M1, and PubSub is not part of it. Thanks!

  8. stephenplusplus commented on Aug 13, 2014

    @stephenplusplus
    Contributor

    I would be happy to! I believe I linked to an example of a js doc overhaul
    of Datastore.dataset earlier in this thread. Any thoughts on that before I
    move on to other sections?

    Something worth noticing, which I'm sure I don't need to point out, is the
    cumbersome dominance of the doc blocks once you add examples in. I foresee
    maintenance of the blocks being an area of trouble, as it's not always
    obvious which examples include a piece of an API that you're refactoring.

    As an example, if I change the Query object and update the examples in its
    query.js file, I might not know to look for the example of using a Query
    object which was shown as part of the Dataset.runQuery documentation in
    dataset.js. We can try to isolate examples to prevent this, but it ends up
    hurting the quality of the examples, as no example would be a complete
    "start to finish" example.

    Hope that made sense. The only alternative I can think of to address the
    problem would be simply splitting the current readme up into different
    sections, then putting complete usage examples there.

    Just things to keep in mind!

    On Wednesday, August 13, 2014, Silvano Luciani [email protected]
    wrote:

    @stephenplusplus https://github.com/stephenplusplus could you put the
    PubSub refactoring on ice for the moment and work on docs for Datastore and
    Storage? we need to focus on completing M1, and PubSub is not part of it.
    Thanks!

    —
    Reply to this email directly or view it on GitHub
    #19 (comment)
    .

  9. silvolu commented on Aug 13, 2014

    @silvolu
    Contributor

    The PoC looks good to me, and in the end, as long as we're adding jsdoc, it will be easy to switch to Dox or similar.

    Regarding the maintenance problem, I think themaintaining samples not directly related to an API change would also apply to several .md files containing the docs. At least in this way we make sure that we can update the example directly related to a change, because it will sit in the file that we're changing :). Makes sense?

  10. stephenplusplus commented on Aug 13, 2014

    @stephenplusplus
    Contributor

    Sure. Just to clarify the splitting of files, I meant to suggest one
    "Datastore" md doc, one "PubSub" etc, so your find and replace would be
    limited to one file. Maintenance-made-easy probably is not a realistic
    endeavor, so either option will bring us as close as we can get :)

    On Wednesday, August 13, 2014, Silvano Luciani [email protected]
    wrote:

    The PoC looks good to me, and in the end, as long as we're adding jsdoc,
    it will be easy to switch to Dox or similar.

    Regarding the maintenance problem, I think themaintaining samples not
    directly related to an API change would also apply to several .md files
    containing the docs. At least in this way we make sure that we can update
    the example directly related to a change, because it will sit in the file
    that we're changing :). Makes sense?

    —
    Reply to this email directly or view it on GitHub
    #19 (comment)
    .

  11. stephenplusplus commented on Aug 27, 2014

    @stephenplusplus
    Contributor

    Closing this since we have this launched. I'm sure we'll have tweaks as we go, but since we're live, I think we can take them on one by one. Feel free to re-open if you feel there's more to discuss.

  12. 95 remaining items

  13. added a commit that references this issue on Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions