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 — docs. by stephenplusplus · Pull Request #108 · googleapis/google-cloud-node

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Aug 14, 2014

Copy link
Copy Markdown
Contributor

RE: #19

Did a sweep of the Datastore doc blocks, as well as laid the groundwork for docs to come. Thanks to jsdoc2md, 5 files are generated in a new docs directory, one for each service/module: "Common", "Datastore", "PubSub", "Storage", and one for lib/index, which is generated as the default "readme.md" for the directory.

For a look at the rendered results, see https://github.com/stephenplusplus/gcloud-node/blob/docs/docs/datastore.md

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rakyll

rakyll commented Aug 14, 2014

Copy link
Copy Markdown
Contributor

Looks like a great start. Quick question, should be move the internal modules such as datastore/entity to another directory to exclude them from docs or annotate them with private?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@beriberikix

beriberikix commented Aug 14, 2014

Copy link
Copy Markdown
Contributor

+1 for marking private methods. Also, what's with random eject icon only on the classes?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Aug 14, 2014

Copy link
Copy Markdown
Contributor Author

@rakyll I went over entity, and marked all but 3 methods as private: Key, Int, and Double - they aren't used directly by the consumer, but as they are already documented in entity.js, I kept them public so our datastore helper methods (datastore.key, datastore.int, and datastore.double) could use their docs.

However, I think jsdoc2md may have a bug, as it doesn't seem to recognize @borrows, which should handle making that link connection. The same code works as expected when outputting jsdoc HTML directly.

https://github.com/stephenplusplus/gcloud-node/blob/docs/docs/datastore.md#datastoreentity

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus stephenplusplus mentioned this pull request Aug 15, 2014
datastore: Protobuf switch #112
Merged
@stephenplusplus

stephenplusplus commented Aug 18, 2014

Copy link
Copy Markdown
Contributor Author

Updated 💯

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rakyll

rakyll commented Aug 18, 2014

Copy link
Copy Markdown
Contributor

I was thinking we should also provide examples for user facing calls -- mostly what we cover on the README. We don't have bandwidth to maintain samples all across the client. And most of them are tautological, reading JSDocs would give an idea.

@silvolu thinks similarly AFAIK.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silvolu

silvolu commented Aug 18, 2014

Copy link
Copy Markdown
Contributor

Yep! After a quick skim most of it looks already covered, I the only missing one I could see are for CRUD operations in datastore/entity.js: you're borrowing from transaction, but that will pull in the transaction code sample as well right?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
docs
f19348a
@stephenplusplus

stephenplusplus commented Aug 18, 2014

Copy link
Copy Markdown
Contributor Author

I believe most of the readme Dataset examples are covered.

@silvolu I think you meant datastore/dataset.js. Like you said, those are linked to transaction, so the docs would link over to the signature and examples from there. That's at least how the official JSDoc interpreter will see them; if we decide on a tool to output the docs that doesn't support @borrows, we would probably have to double up on our definitions.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silvolu

silvolu commented Aug 18, 2014

Copy link
Copy Markdown
Contributor

Yeah sorry, that's what I meant. Wouldn't the resulting sample be incorrect though? (e.g. ds.get vs transaction.get)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Aug 18, 2014

Copy link
Copy Markdown
Contributor Author

Yeah, it would show the examples in the context of a transaction. We can override the examples for those, hopefully still allowing the description/signature to match. We would end up with identical examples (minus the object name change), but if you think that's a fair price, I'll be happy to override 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silvolu

silvolu commented Aug 18, 2014

Copy link
Copy Markdown
Contributor

Yeah, I think this one is a small dup that we need: the relation between the dataset operation and the transaction might not be immediately clear, and the sample could confuse the user.
Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Aug 18, 2014

Copy link
Copy Markdown
Contributor Author

No problemo! I'll probably save that for tomorrow. Feel free to merge as-is if this is blocking anything, I can always send another PR for the example updates.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rakyll pushed a commit that referenced this pull request Aug 19, 2014
Burcu Dogan
Merge pull request #108 from stephenplusplus/docs
7b3b24a
docs.
@rakyll
rakyll merged commit 7b3b24a into googleapis:master Aug 19, 2014
@rakyll

rakyll commented Aug 19, 2014

Copy link
Copy Markdown
Contributor

I'm merging this, then.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
stephenplusplus deleted the docs branch August 19, 2014 19:12
@stephenplusplus stephenplusplus mentioned this pull request Aug 19, 2014
datastore: docs: add examples. #117
Merged
chingor13 pushed a commit that referenced this pull request Aug 22, 2022
@JustinBeckwith
docs: update links in contrib guide (#108)
ee3eb5d
chingor13 pushed a commit that referenced this pull request Sep 12, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#108)
9faa3f1
chingor13 pushed a commit that referenced this pull request Sep 14, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#108)
b5fbf85
@sofisl sofisl mentioned this pull request Sep 16, 2022
migrate code from googleapis/nodejs-os-login #3366
Closed
4 tasks
sofisl pushed a commit that referenced this pull request Sep 16, 2022
@JustinBeckwith
chore: update eslintignore config (#108)
36baeb1
sofisl pushed a commit that referenced this pull request Sep 27, 2022
@renovate @JustinBeckwith
chore(deps): update dependency eslint-plugin-prettier to v3 (#108)
ff1d582
@sofisl sofisl mentioned this pull request Sep 27, 2022
migrate code from googleapis/nodejs-video-intelligence #3374
Closed
4 tasks
sofisl pushed a commit that referenced this pull request Oct 5, 2022
@JustinBeckwith
chore: update eslintignore config (#108)
919fe07
This was referenced Oct 5, 2022
migrate code from googleapis/nodejs-os-login #3388
Closed
migrate code from googleapis/nodejs-os-login #3389
Closed
sofisl pushed a commit that referenced this pull request Oct 8, 2022
@JustinBeckwith
chore: update eslintignore config (#108)
b5686ed
@sofisl sofisl mentioned this pull request Oct 11, 2022
migrate code from googleapis/nodejs-os-login #3391
Merged
4 tasks
This was referenced Jan 27, 2026
migrate code from googleapis/cloud-profiler-nodejs #7047
Closed
migrate code from googleapis/cloud-profiler-nodejs #7048
Closed
migrate code from googleapis/cloud-profiler-nodejs #7049
Closed
migrate code from googleapis/cloud-profiler-nodejs #7051
Closed
migrate code from googleapis/cloud-profiler-nodejs #7052
Closed
migrate code from googleapis/cloud-profiler-nodejs #7057
Closed
miguelvelezsa pushed a commit that referenced this pull request Jan 29, 2026
Benjamin E. Coe @JustinBeckwith
build!: upgrade engines field to >=8.10.0 (#108)
96232b3
@miguelvelezsa miguelvelezsa mentioned this pull request Jan 29, 2026
migrate code from googleapis/nodejs-promisify #7059
Closed
This was referenced Jan 29, 2026
migrate code from googleapis/cloud-profiler-nodejs #7060
Closed
migrate code from googleapis/cloud-profiler-nodejs #7062
Closed
migrate code from googleapis/cloud-profiler-nodejs #7066
Closed
migrate code from googleapis/cloud-profiler-nodejs #7067
Closed
migrate code from googleapis/cloud-profiler-nodejs #7068
Closed
migrate code from googleapis/cloud-profiler-nodejs #7071
Closed
migrate code from googleapis/cloud-profiler-nodejs #7087
Merged
sofisl pushed a commit that referenced this pull request Feb 3, 2026
@alexander-fenster
chore: the ultimate fix for repo-tools EPERM (#108)
08ea9d3
* chore: the ultimate fix for repo-tools EPERM

* run CI as non-root user to match other packages
This was referenced Feb 3, 2026
migrate code from googleapis/nodejs-bigquery #7111
Merged
migrate code from googleapis/nodejs-logging-bunyan #7136
Closed
migrate code from googleapis/nodejs-logging-bunyan #7137
Closed
migrate code from googleapis/nodejs-logging-bunyan #7138
Merged
@GautamSharda GautamSharda mentioned this pull request Feb 5, 2026
migrate code from googleapis/nodejs-error-reporting #7169
Closed
4 tasks
This was referenced Feb 23, 2026
migrate code from googleapis/nodejs-error-reporting #7294
Closed
migrate code from googleapis/nodejs-error-reporting #7308
Merged
This was referenced Feb 26, 2026
migrate code from googleapis/nodejs-firestore #7311
Closed
migrate code from googleapis/nodejs-firestore #7410
Merged
@codyoss codyoss mentioned this pull request Mar 5, 2026
migrate code from googleapis/nodejs-projectify #7511
Merged
@codyoss codyoss mentioned this pull request Mar 12, 2026
migrate code from googleapis/nodejs-precise-date #7594
Merged
This was referenced Mar 12, 2026
migrate code from googleapis/nodejs-promisify #7595
Closed
migrate code from googleapis/nodejs-promisify #7596
Merged
migrate code from googleapis/nodejs-common #7597
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@stephenplusplus @rakyll @beriberikix @silvolu
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.