-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: upstream links #790
docs: upstream links #790
Conversation
@@ -56,6 +56,9 @@ function Dataset(bigQuery, id) { | |||
/** | |||
* Create a table given a tableId or configuration object. | |||
* | |||
* See [Tables: insert](https://cloud.google.com/bigquery/docs/reference/v2/tables/insert) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@stephenplusplus so I kinda think the overall appearance of the links could be better, what are your feelings on doing something like this.. /**
* <div class="notice">See [Tables: insert](https://cloud.google.com/bigquery/docs/reference/v2/tables/insert)
* for more detailed information.</div>
*/ |
Could you post a screenshot of what that renders like? |
That looks cool to me. Semantics: would just a manual a tag be better? |
Instead of the markdown link syntax? |
Yeah, I'm thinking since we have to add a class, we don't need the extra On Monday, August 10, 2015, Dave Gramlich notifications@github.com wrote:
|
Well, if I understand correctly, that's going to turn the entire sentence into a link? I'm probably splitting hairs, but I think that would be kind of ugly. We could just write some styles to make the blockquote look the same as the notice class and go full out markdown. |
Nope you're right. I'm just getting myself confused. Sorry! For the text, wdyt about just "Official API documentation" And if it's just the one line, we can use the a tag with a class, unless you think that's a bad idea. Official API documentation. |
It looks awesome! Moving the link to a jsdoc property makes it much easier to make changes now without having to go through all of the docs. I would prefer the links move to the top, as we want to get across "see the API docs for more information about our parameters". Here's an example: Can you think of another way to make it clear that the official docs have more information on the properties we accept? Also note, I changed "Code on GitHub" to "Source Code". Small change, but "Code on GitHub" just reads like a bad sentence to me. "Source Code" is direct and concise! |
Done!
I think maybe just make a note within the object description? e.g. - Configuration object. For a complete list of properties please refer to the Official API Documentation. It's also possible to give each resource link a custom title from JSDoc, so we could alter the link title to convey this as well. Perhaps instead of Official API Documentation you could say Complete List of Configuration Options or something..
I can dig it. |
LGTM. @jgeewax wdyt? Did we make things better or regress? |
So it's definitely a step forward, however... I have to say I liked the "See: Tables.insert [ -> ] for more information" since it ties it to the specific method (aka, I know I'm not being dumped off to some marketing landing page somewhere that's ridiculous...) Is it too much work to do that? (Fully understand if so.) Ideally, text might be something like... "See: Tables.insert [ -> ] API method for more information" |
It definitely isn't! @stephenplusplus thought it would be nice to move the source code link into the same block and while doing that I also found links for concepts/references/etc. scattered across the api so I decided to consolidate them all. (e.g. http://callmehiphop.github.io/gcloud-node/#/docs/master/storage/bucket?method=acl) Is that something you like and would want to keep? If so, I think maybe the verbiage "See: Tables.insert for more information" might sound kinda funny in a list of links opposed to something like "Tables.insert REST API Documentation" Thoughts? |
Gotcha Phrased as a list of links, definitely "Tables.insert API documentation (official)" or similar makes sense Is it crazy to move the resources down as well? Logically they make sense above, but when I'm looking at docs, examples are likely going to be ... far more important than the link to the API docs... Maybe call it "More information" and put it at the bottom? |
Personally I think it makes sense - a user is probably only going to want to see the full documentation if the examples don't provide them with the information they need. So having the links below the examples is probably more convenient. However, I think the whole reason @stephenplusplus opened an issue about this is because we don't document all the available options that a user can pass in for some methods. Having the links right above the options as well as a comment in the |
Updated the link titles & placement and pushed, let me know what you guys think! |
Awesome. Just. Awesome. |
💃 |
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@google-cloud/storage](https://togithub.com/googleapis/nodejs-storage) | [`^5.0.0` -> `^6.0.0`](https://renovatebot.com/diffs/npm/@google-cloud%2fstorage/5.20.5/6.1.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-translate).
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^9.0.2` -> `^10.0.0`](https://renovatebot.com/diffs/npm/sinon/9.2.4/10.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>sinonjs/sinon</summary> ### [`v10.0.0`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1000--2021-03-22) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v9.2.4...v10.0.0) ================== - Upgrade nise to 4.1.0 - Use [@​sinonjs/eslint-config](https://togithub.com/sinonjs/eslint-config)[@​4](https://togithub.com/4) => Adopts ES2017 => Drops support for IE 11, Legacy Edge and legacy Safari </details> --- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-dialogflow).
🤖 I have created a release \*beep\* \*boop\* --- ### [4.6.1](https://www.github.com/googleapis/nodejs-speech/compare/v4.6.0...v4.6.1) (2021-08-17) ### Bug Fixes * **deps:** google-gax v2.24.1 ([#790](https://www.github.com/googleapis/nodejs-speech/issues/790)) ([bd8ab29](https://www.github.com/googleapis/nodejs-speech/commit/bd8ab29d3b6480d854a8a3a23e520d09d6bdb298)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release \*beep\* \*boop\* --- ### [4.6.1](https://www.github.com/googleapis/nodejs-speech/compare/v4.6.0...v4.6.1) (2021-08-17) ### Bug Fixes * **deps:** google-gax v2.24.1 ([#790](https://www.github.com/googleapis/nodejs-speech/issues/790)) ([bd8ab29](https://www.github.com/googleapis/nodejs-speech/commit/bd8ab29d3b6480d854a8a3a23e520d09d6bdb298)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* docs: fix node release schedule link Co-authored-by: Jeffrey Rennie <rennie@google.com> Source-Link: googleapis/synthtool@1a24315 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:e08f9a3757808cdaf7a377e962308c65c4d7eff12db206d4fae702dd50d43430 * chore!: upgrade to Node 14 * 🦉 Updates from OwlBot post-processor 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> Co-authored-by: Sofia Leon <sofialeon@google.com>
Closes #740
Added links for all upstream counterparts.
demo