Skip to content

Commit

Permalink
add asciinema player to show command line
Browse files Browse the repository at this point in the history
Signed-off-by: henry.liu <[email protected]>
  • Loading branch information
lsq645599166 authored and Iceber committed Feb 8, 2022
1 parent 7702f37 commit 834971c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Add styles or override variables from the theme here.
*/

.asciinema-player .control-bar {
display: none;
height: 0;
}
.asciinema-player .start-prompt {
display: none;
}
9 changes: 9 additions & 0 deletions content/zh/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@

{{< blocks/link-down color="info" >}}
</div>

<asciinema-player
loop
autoplay
font-size="12px"
rows=12
cols=100
src="/clusterpedia.cast"
/>
{{< /blocks/cover >}}

{{% blocks/lead color="primary" %}}
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/hooks/body-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="https://cdn.bootcdn.net/ajax/libs/asciinema-player/2.6.1/asciinema-player.min.js"></script>
1 change: 1 addition & 0 deletions layouts/partials/hooks/head-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link href="https://cdn.bootcdn.net/ajax/libs/asciinema-player/2.6.1/asciinema-player.min.css" rel="stylesheet">
Empty file added static/clusterpedia.cast
Empty file.

0 comments on commit 834971c

Please sign in to comment.