Skip to content

Commit a719697

Browse files
authored
chore: regenerate VHS demo GIFs (#150)
## Summary Re-ran VHS over all tape files in `docs/vhs/` to regenerate up-to-date demo GIFs. ## Changes - Updated GIFs: `advanced-features`, `install`, `mappings-demo`, `multiple-mappings`, `remote-content`, `schema-generation`, `usage`, `yaml-config`
1 parent c0cac02 commit a719697

18 files changed

Lines changed: 97 additions & 27 deletions

.github/workflows/generate-terminal-gifs.yaml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,7 @@ permissions:
88
pull-requests: write
99

1010
jobs:
11-
run-tapes:
12-
strategy:
13-
matrix:
14-
tapes:
15-
- 'docs/vhs/install.tape'
16-
- 'docs/vhs/basic-usage.tape'
17-
- 'docs/vhs/yaml-config.tape'
18-
- 'docs/vhs/mappings-demo.tape'
19-
- 'docs/vhs/multiple-mappings.tape'
20-
- 'docs/vhs/advanced-features.tape'
21-
- 'docs/vhs/remote-content.tape'
22-
- 'docs/vhs/schema-generation.tape'
11+
generate-gifs:
2312
runs-on: ubuntu-latest
2413
steps:
2514
- name: Checkout
@@ -32,16 +21,25 @@ jobs:
3221
with:
3322
python-version: '3.x'
3423

35-
- uses: charmbracelet/vhs-action@v2
36-
with:
37-
path: ${{ matrix.tapes }}
24+
- name: Install VHS
25+
run: |
26+
sudo mkdir -p /etc/apt/keyrings
27+
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
28+
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
29+
sudo apt-get update && sudo apt-get install -y vhs
30+
31+
- name: Generate GIFs
32+
run: bash scripts/generate-gifs.sh
3833

3934
- name: Create Pull Request
4035
uses: peter-evans/create-pull-request@v7
4136
with:
42-
commit-message: Update generated VHS GIF
43-
branch: repository-dispatch/update-${{ github.run_id }}
44-
title: Update generated VHS GIF
45-
body: This PR updates the generated VHS GIF files.
37+
commit-message: 'chore: update generated VHS GIFs'
38+
branch: automation/update-vhs-gifs-${{ github.run_id }}
39+
title: '[chore] update generated VHS GIFs'
40+
body: |
41+
This PR updates all generated VHS GIF files.
42+
43+
Triggered by workflow run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
4644
base: main
4745
labels: automation

docs/vhs/advanced-features.gif

1.73 MB
Loading

docs/vhs/advanced-features.tape

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Output docs/vhs/advanced-features.gif
22

33
Set Theme "Monokai Vivid"
4-
Set FontSize 14
4+
Set FontSize 18
55
Set TypingSpeed 40ms
66
Set Width 1400
77
Set Height 800
@@ -11,6 +11,10 @@ Type "# StructKit Advanced Features Demo"
1111
Enter
1212
Sleep 1s
1313

14+
Type "source .venv/bin/activate"
15+
Enter
16+
Sleep 500ms
17+
1418
Type "# Generate schema for VSCode autocompletion"
1519
Enter
1620
Type "mkdir -p .vscode"

docs/vhs/basic-usage.tape

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Output docs/vhs/usage.gif
22

33
Set Theme "Dracula"
4-
Set FontSize 14
4+
Set FontSize 18
55
Set Width 1200
66
Set Height 600
77
Set Shell "bash"
@@ -10,6 +10,10 @@ Type "# StructKit - Basic Usage Demo"
1010
Enter
1111
Sleep 1s
1212

13+
Type "source .venv/bin/activate"
14+
Enter
15+
Sleep 500ms
16+
1317
Type "# First, let's see what structures are available"
1418
Enter
1519
Sleep 500ms

docs/vhs/install.gif

174 KB
Loading

docs/vhs/install.tape

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Output docs/vhs/install.gif
33

44
Set Theme "Monokai Vivid"
5-
Set FontSize 14
5+
Set FontSize 18
66
Set TypingSpeed 40ms
77
Set Width 1400
88
Set Height 800

docs/vhs/mappings-demo.gif

327 KB
Loading

docs/vhs/mappings-demo.tape

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Output docs/vhs/mappings-demo.gif
22

33
Set Theme "Monokai Vivid"
4-
Set FontSize 14
4+
Set FontSize 18
55
Set TypingSpeed 40ms
66
Set Width 1400
77
Set Height 800
@@ -11,6 +11,10 @@ Type "# StructKit Mappings Demo"
1111
Enter
1212
Sleep 1s
1313

14+
Type "source .venv/bin/activate"
15+
Enter
16+
Sleep 500ms
17+
1418
Type "# Create a simple mapping file with team data"
1519
Enter
1620
Type "cat > team-mapping.yaml << EOF"

docs/vhs/multiple-mappings.gif

495 KB
Loading

docs/vhs/multiple-mappings.tape

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Output docs/vhs/multiple-mappings.gif
22

33
Set Theme "Monokai Vivid"
4-
Set FontSize 14
4+
Set FontSize 18
55
Set TypingSpeed 40ms
66
Set Width 1400
77
Set Height 800
@@ -11,6 +11,10 @@ Type "# StructKit Multiple Mappings Demo"
1111
Enter
1212
Sleep 1s
1313

14+
Type "source .venv/bin/activate"
15+
Enter
16+
Sleep 500ms
17+
1418
Type "# Create company info mapping"
1519
Enter
1620
Type "cat > company-info.yaml << EOF"

0 commit comments

Comments
 (0)