From a996ae9c7c81bf778ea78e67c335f49f7b3667e4 Mon Sep 17 00:00:00 2001 From: Aston Zhang Date: Sat, 4 Dec 2021 00:49:48 +0000 Subject: [PATCH] add sm studio lab button --- static/build_html.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/build_html.sh b/static/build_html.sh index d207e4e8..97b03469 100755 --- a/static/build_html.sh +++ b/static/build_html.sh @@ -17,3 +17,8 @@ for fn in `find _build/html/_images/ -iname '*.svg' `; do rsvg-convert -z 1 -f svg -o tmp.svg $fn mv tmp.svg $fn done + +# Add SageMaker Studio Lab buttons +for f in _build/html/chapter*/*.html; do + sed -i s/Open\ the\ notebook\ in\ Colab\<\\\/div\>\<\\\/div\>\<\\\/div\>\<\\\/h1\>/Open\ the\ notebook\ in\ Colab\<\\\/div\>\<\\\/div\>\<\\\/div\>\\ \\ \\<\\\/i\>\ SageMaker\ Studio\ Lab\ \<\\\/button\>\<\\\/a\>\\ Open\ the\ notebook\ in\ SageMaker\ Studio\ Lab\<\\\/div\>\<\\\/h1\>/g $f +done -- GitLab