Skip to content

Commit 59cd00b

Browse files
committed
demo: improve the demo style
1 parent ad900f9 commit 59cd00b

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

.github/workflows/actionlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ jobs:
2222
- name: Check workflow files
2323
run: ${{ steps.get_actionlint.outputs.executable }} -color
2424
shell: bash
25+
env:
26+
SHELLCHECK_OPTS: --exclude=SC2016

.github/workflows/demo.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,29 @@ jobs:
4646
- name: Install VHS
4747
run: go install github.com/charmbracelet/vhs@latest
4848

49+
- name: Install Nerd Font
50+
run: |
51+
mkdir -p ~/.local/share/fonts
52+
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraCode.zip
53+
unzip FiraCode.zip -d ~/.local/share/fonts/
54+
fc-cache -fv
55+
56+
- name: Install Zsh
57+
run: sudo apt update && sudo apt install -y zsh
58+
59+
- name: Install zsh-syntax-highlighting
60+
run: |
61+
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/z
62+
echo 'source ~/z/zsh-syntax-highlighting.zsh' >> ~/.zshrc
63+
64+
- name: Install Starship
65+
run: |
66+
curl -sS https://starship.rs/install.sh | sh -s -- -y
67+
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
68+
69+
- name: Move demo.tape
70+
run: mv demo.tape ${{ runner.temp }}
71+
4972
- name: Generate and publish a new demo
5073
run: vhs --publish demo.tape
74+
working-directory: ${{ runner.temp }}

demo.tape

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,24 @@
5757

5858
Output demo.gif
5959

60+
Require zsh
61+
Require starship
6062
Require cabin
6163

62-
Set Shell "bash"
63-
Set FontSize 32
64-
Set Width 1600
65-
Set Height 800
64+
Set Shell "zsh"
65+
Set FontSize 16
66+
Set FontFamily "FiraCode Nerd Font"
67+
Set Width 800
68+
Set Height 450
69+
Set WindowBar Colorful
70+
Set Padding 20
71+
Set Margin 20
72+
Set MarginFill "#000000"
73+
Set BorderRadius 10
74+
75+
Hide
76+
Type "source ~/.zshrc" Enter
77+
Show
6678

6779
Type "cabin version" Sleep 500ms Enter Sleep 1s
6880
Type "cabin new hello_world" Sleep 500ms Enter Sleep 1s

0 commit comments

Comments
 (0)