Skip to content

Commit e31bdb2

Browse files
MarkDaoustcopybara-github
authored andcommitted
Update template buttons.
Added missing "download" button. PiperOrigin-RevId: 414328509
1 parent f26b602 commit e31bdb2

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tools/templates/subsite/g3doc/tutorials/notebook.ipynb

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,16 @@
4848
"source": [
4949
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
5050
" <td>\n",
51-
" <a target=\"_blank\" href=\"https://www.tensorflow.org/{PATH}\">\n",
52-
" <img src=\"https://www.tensorflow.org/images/tf_logo_32px.png\" />\n",
53-
" View on TensorFlow.org</a>\n",
51+
" <a target=\"_blank\" href=\"https://www.tensorflow.org/{TENSORFLOW_PATH}\"><img src=\"https://www.tensorflow.org/images/tf_logo_32px.png\" />View on TensorFlow.org</a>\n",
5452
" </td>\n",
5553
" <td>\n",
56-
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/docs/blob/master/tools/templates/subsite/g3doc/tutorials/notebook.ipynb\">\n",
57-
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />\n",
58-
" Run in Google Colab</a>\n",
54+
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/{GITHUB_PATH}\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
5955
" </td>\n",
6056
" <td>\n",
61-
" <a target=\"_blank\" href=\"https://github.com/tensorflow/docs/blob/master/tools/templates/subsite/g3doc/tutorials/notebook.ipynb\">\n",
62-
" <img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />\n",
63-
" View source on GitHub</a>\n",
57+
" <a target=\"_blank\" href=\"https://github.com/{GITHUB_PATH}\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
58+
" </td>\n",
59+
" <td>\n",
60+
" <a href=\"https://storage.googleapis.com/tensorflow_docs/docs/site/en/{TENSORFLOW_PATH}.ipynb\"><img src=\"https://www.tensorflow.org/images/download_logo_32px.png\" />Download notebook</a>\n",
6461
" </td>\n",
6562
"</table>"
6663
]

0 commit comments

Comments
 (0)