Skip to content

Commit 44b5ead

Browse files
michaelawyudanoscarmike
michaelawyu
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(#1254)](#1254)
1 parent 7ec7aa3 commit 44b5ead

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

translation/samples/snippets/README.rst

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Translation API Python Samples
44
===============================================================================
55

6+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/README.rst
8+
9+
610
This directory contains samples for Google Translation API. With `Google Translation API`, you can dynamically translate text between thousands of language pairs.
711

812

@@ -54,6 +58,10 @@ Samples
5458
Quickstart
5559
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5660

61+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
62+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/quickstart.py;translate/cloud-client/README.rst
63+
64+
5765

5866

5967
To run this sample:
@@ -66,6 +74,10 @@ To run this sample:
6674
Snippets
6775
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6876

77+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
78+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/snippets.py;translate/cloud-client/README.rst
79+
80+
6981

7082

7183
To run this sample:
@@ -77,13 +89,13 @@ To run this sample:
7789
usage: snippets.py [-h]
7890
{detect-language,list-languages,list-languages-with-target,translate-text}
7991
...
80-
92+
8193
This application demonstrates how to perform basic operations with the
8294
Google Cloud Translate API
83-
95+
8496
For more information, the documentation at
8597
https://cloud.google.com/translate/docs.
86-
98+
8799
positional arguments:
88100
{detect-language,list-languages,list-languages-with-target,translate-text}
89101
detect-language Detects the text's language.
@@ -97,13 +109,14 @@ To run this sample:
97109
be an ISO 639-1 language code. See
98110
https://g.co/cloud/translate/v2/translate-
99111
reference#supported_languages
100-
112+
101113
optional arguments:
102114
-h, --help show this help message and exit
103115
104116
105117
106118
119+
107120
The client library
108121
-------------------------------------------------------------------------------
109122

translation/samples/snippets/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ samples:
2020
show_help: true
2121

2222
cloud_client_library: true
23+
24+
folder: translate/cloud-client

0 commit comments

Comments
 (0)