Skip to content

Commit

Permalink
docs: new license format; improved sample instructions (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Dec 31, 2019
1 parent 29c60f1 commit 55a74b3
Show file tree
Hide file tree
Showing 3 changed files with 911 additions and 909 deletions.
29 changes: 14 additions & 15 deletions packages/google-cloud-translate/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
/*!
* Copyright 2018 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

'use strict';

Expand Down
14 changes: 10 additions & 4 deletions packages/google-cloud-translate/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ For example, to run the `translate_list_codes_beta` sample, you would run the fo
node v3beta1/translate_list_codes_beta.js "your_project_id"
```

`cd samples`

`npm install`

`cd ..`

## Samples


Expand All @@ -95,7 +101,7 @@ View the [source code](https://github.com/googleapis/nodejs-translate/blob/maste
__Usage:__


`node hybridGlossaries.js`
`node samples/hybridGlossaries.js`


-----
Expand All @@ -112,7 +118,7 @@ View the [source code](https://github.com/googleapis/nodejs-translate/blob/maste
__Usage:__


`node quickstart.js`
`node samples/quickstart.js`


-----
Expand All @@ -129,7 +135,7 @@ View the [source code](https://github.com/googleapis/nodejs-translate/blob/maste
__Usage:__


`node translate.js`
`node samples/translate.js`



Expand All @@ -138,4 +144,4 @@ __Usage:__

[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-translate&page=editor&open_in_editor=samples/README.md
[product-docs]: https://cloud.google.com/translate/docs/
[product-docs]: https://cloud.google.com/translate/docs/
Loading

0 comments on commit 55a74b3

Please sign in to comment.