Merge pull request #29205 from sftim/20210803_improve_katacoda_button

Improve Katacoda button
pull/29323/head
Kubernetes Prow Robot 2021-08-10 18:08:46 -07:00 committed by GitHub
commit 4097fca5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,6 @@
{{ if .HasShortcode "kat-button" }}
<div id="katacoda-environment" data-katacoda-ondemand="true" data-katacoda-port="30000" data-katacoda-env="minikube" data-katacoda-command="start.sh" data-katacoda-ui="panel"></div>
{{ end }}
{{ with .Site.Params.algolia_docsearch }}
<!-- scripts for algolia docsearch -->
{{ end }}

View File

@ -1,3 +1,2 @@
<div id="my-panel" data-katacoda-ondemand="true" data-katacoda-port="30000" data-katacoda-env="minikube" data-katacoda-command="start.sh" data-katacoda-ui="panel"></div>
<script src="https://katacoda.com/embed.js"></script>
<script defer src="https://katacoda.com/embed.js"></script>
<button class="button" onclick="window.katacoda.init(); ">Launch Terminal</button>