Skip to content

Commit 0779b61

Browse files
author
Takashi Matsuo
authored
[media-translation] docs: hide cloud shell button for mic sample (#3770)
fixes #3769
1 parent 856f76c commit 0779b61

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

media-translation/cloud-client/README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ To run this sample:
8282
Translate from mic
8383
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8484

85-
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
86-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=media-translation/cloud-client/translate_from_mic.py,media-translation/cloud-client/README.rst
8785

8886

8987

media-translation/cloud-client/README.rst.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ samples:
1818
show_help: true
1919
- name: Translate from mic
2020
file: translate_from_mic.py
21+
hide_cloudshell_button: true
2122

2223
cloud_client_library: true
2324

24-
folder: media-translation/cloud-client
25+
folder: media-translation/cloud-client

scripts/readme-gen/templates/README.tmpl.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ Samples
3434
{{sample.name}}
3535
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3636

37+
{% if not sample.hide_cloudshell_button %}
3738
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
3839
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst
40+
{% endif %}
3941

4042

4143
{{sample.description}}

0 commit comments

Comments
 (0)