Skip to content

Conversation

@stephenplusplus
Copy link
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

@rakyll
Copy link
Contributor

rakyll commented Aug 14, 2014

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?

@beriberikix
Copy link
Contributor

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

@stephenplusplus
Copy link
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

@stephenplusplus
Copy link
Contributor Author

Updated 💯

@rakyll
Copy link
Contributor

rakyll commented Aug 18, 2014

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.

@silvolu
Copy link
Contributor

silvolu commented Aug 18, 2014

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?

@stephenplusplus
Copy link
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.

@silvolu
Copy link
Contributor

silvolu commented Aug 18, 2014

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

@stephenplusplus
Copy link
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 👍

@silvolu
Copy link
Contributor

silvolu commented Aug 18, 2014

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!

@stephenplusplus
Copy link
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.

rakyll pushed a commit that referenced this pull request Aug 19, 2014
@rakyll rakyll merged commit 7b3b24a into googleapis:master Aug 19, 2014
@rakyll
Copy link
Contributor

rakyll commented Aug 19, 2014

I'm merging this, then.

@stephenplusplus stephenplusplus deleted the docs branch August 19, 2014 19:12
chingor13 pushed a commit that referenced this pull request Aug 22, 2022
chingor13 pushed a commit that referenced this pull request Sep 12, 2022
chingor13 pushed a commit that referenced this pull request Sep 14, 2022
sofisl pushed a commit that referenced this pull request Sep 16, 2022
sofisl pushed a commit that referenced this pull request Oct 5, 2022
sofisl pushed a commit that referenced this pull request Oct 8, 2022
sofisl pushed a commit that referenced this pull request Nov 11, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Nov 11, 2022
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474338479

Source-Link: googleapis/googleapis@d5d35e0

Source-Link: googleapis/googleapis-gen@efcd3f9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
sofisl pushed a commit that referenced this pull request Nov 11, 2022
🤖 I have created a release *beep* *boop*
---


## [2.0.2](https://togithub.com/googleapis/nodejs-essential-contacts/compare/v2.0.1...v2.0.2) (2022-11-11)


### Bug Fixes

* Allow passing gax instance to client constructor ([#110](https://togithub.com/googleapis/nodejs-essential-contacts/issues/110)) ([fb3d596](https://togithub.com/googleapis/nodejs-essential-contacts/commit/fb3d596a8dee0ab338485a862955757cfbcd99c2))
* Better support for fallback mode ([#105](https://togithub.com/googleapis/nodejs-essential-contacts/issues/105)) ([c23259b](https://togithub.com/googleapis/nodejs-essential-contacts/commit/c23259b0a493e5bcdabf408902ffe16be76e7cb0))
* Change import long to require ([#106](https://togithub.com/googleapis/nodejs-essential-contacts/issues/106)) ([f009752](https://togithub.com/googleapis/nodejs-essential-contacts/commit/f009752ac7a8267ef6444fa9eb7338e70e6687d6))
* **deps:** Use google-gax v3.5.2 ([#117](https://togithub.com/googleapis/nodejs-essential-contacts/issues/117)) ([f90a6e7](https://togithub.com/googleapis/nodejs-essential-contacts/commit/f90a6e75af5c23754bf67bea1b8fd55c96a1330f))
* Do not import the whole google-gax from proto JS ([#1553](https://togithub.com/googleapis/nodejs-essential-contacts/issues/1553)) ([#109](https://togithub.com/googleapis/nodejs-essential-contacts/issues/109)) ([c7e8827](https://togithub.com/googleapis/nodejs-essential-contacts/commit/c7e8827859caa1c23bc38f43ca71cfe8d6784dfd))
* Preserve default values in x-goog-request-params header ([#111](https://togithub.com/googleapis/nodejs-essential-contacts/issues/111)) ([5074ba2](https://togithub.com/googleapis/nodejs-essential-contacts/commit/5074ba241d3e5ac5dc4a47ef7fc9cc3761f406cb))
* Regenerated protos JS and TS definitions ([#120](https://togithub.com/googleapis/nodejs-essential-contacts/issues/120)) ([4989df1](https://togithub.com/googleapis/nodejs-essential-contacts/commit/4989df17b1c7d0deb7907f7659b0fd2032833e8f))
* Remove pip install statements ([#1546](https://togithub.com/googleapis/nodejs-essential-contacts/issues/1546)) ([#108](https://togithub.com/googleapis/nodejs-essential-contacts/issues/108)) ([9fb4d1c](https://togithub.com/googleapis/nodejs-essential-contacts/commit/9fb4d1c253480086fe101cef0817874b313d076a))
* use google-gax v3.3.0 ([c7e8827](https://togithub.com/googleapis/nodejs-essential-contacts/commit/c7e8827859caa1c23bc38f43ca71cfe8d6784dfd))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
sofisl added a commit that referenced this pull request Nov 11, 2022
*build!: Update library to use Node 12
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Nov 16, 2022
* chore(deps): upgrade gapic-generator-java to 2.4.1

PiperOrigin-RevId: 422607515

Source-Link: googleapis/googleapis@ba2ffd6

Source-Link: googleapis/googleapis-gen@73ba4ad
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNiYTRhZGQyMzlhNjE5ZGE1NjdmZmJkNGU1NzMwZmRkNmRlMDRkMyJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Nov 16, 2022
sofisl pushed a commit that referenced this pull request Nov 16, 2022
🤖 I have created a release \*beep\* \*boop\*
---
## [1.3.0](https://www.github.com/googleapis/nodejs-retail/compare/v1.2.2...v1.3.0) (2021-10-19)


### Features

* add search mode to search request. If not specified, a single search request triggers both product search and faceted search. ([49b9b8e](https://www.github.com/googleapis/nodejs-retail/commit/49b9b8e22eba6318f54e44025df4e3c1900cb73e))
* update grpc service config settings to reflect correct API deadlines ([49b9b8e](https://www.github.com/googleapis/nodejs-retail/commit/49b9b8e22eba6318f54e44025df4e3c1900cb73e))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
sofisl pushed a commit that referenced this pull request Nov 18, 2022
sofisl pushed a commit that referenced this pull request Jan 10, 2023
sofisl pushed a commit that referenced this pull request Jan 17, 2023
sofisl pushed a commit that referenced this pull request Jan 24, 2023
sofisl pushed a commit that referenced this pull request Jan 25, 2023
sofisl pushed a commit that referenced this pull request Sep 13, 2023
sofisl pushed a commit that referenced this pull request Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants