Skip to content

Commit

Permalink
fix(docs): stop redirecting reference docs to anchor, add new sample …
Browse files Browse the repository at this point in the history
…to README
  • Loading branch information
yoshi-automation authored and bcoe committed Aug 28, 2019
1 parent b8faf3c commit bbb5537
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -107,6 +107,7 @@ has instructions for running the samples.
| Notifications | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/notifications.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/notifications.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Requester Pays | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/requesterPays.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/requesterPays.js,samples/README.md) |
| Upload a directory to a bucket. | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/uploadDirectory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadDirectory.js,samples/README.md) |



Expand Down Expand Up @@ -142,12 +143,10 @@ Apache Version 2.0

See [LICENSE](https://github.com/googleapis/nodejs-storage/blob/master/LICENSE)

[client-docs]: https://googleapis.dev/nodejs/storage/latest#reference
[client-docs]: https://googleapis.dev/nodejs/storage/latest
[product-docs]: https://cloud.google.com/storage
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=storage-api.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started

<a name="reference"></a>
20 changes: 20 additions & 0 deletions samples/README.md
Expand Up @@ -34,6 +34,7 @@ objects to users via direct download.
* [Notifications](#notifications)
* [Quickstart](#quickstart)
* [Requester Pays](#requester-pays)
* [Upload a directory to a bucket.](#upload-a-directory-to-a-bucket.)

## Before you begin

Expand Down Expand Up @@ -325,6 +326,25 @@ __Usage:__
`node requesterPays.js`


-----




### Upload a directory to a bucket.

Uploads full hierarchy of a local directory to a bucket.

View the [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/uploadDirectory.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadDirectory.js,samples/README.md)

__Usage:__


`node files.js upload-directory <bucketName> <directoryPath>`





Expand Down
2 changes: 1 addition & 1 deletion synth.metadata
@@ -1,5 +1,5 @@
{
"updateTime": "2019-08-14T00:53:10.619189Z",
"updateTime": "2019-08-28T11:21:44.803161Z",
"sources": [
{
"template": {
Expand Down

0 comments on commit bbb5537

Please sign in to comment.