Skip to content

Commit

Permalink
[media-translation] docs: hide cloud shell button for mic sample (Goo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo authored May 15, 2020
1 parent 856f76c commit 0779b61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions media-translation/cloud-client/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ To run this sample:
Translate from mic
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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



Expand Down
3 changes: 2 additions & 1 deletion media-translation/cloud-client/README.rst.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ samples:
show_help: true
- name: Translate from mic
file: translate_from_mic.py
hide_cloudshell_button: true

cloud_client_library: true

folder: media-translation/cloud-client
folder: media-translation/cloud-client
2 changes: 2 additions & 0 deletions scripts/readme-gen/templates/README.tmpl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ Samples
{{sample.name}}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

{% if not sample.hide_cloudshell_button %}
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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
{% endif %}


{{sample.description}}
Expand Down

0 comments on commit 0779b61

Please sign in to comment.