chore: move example vhs tapes to a folder (#867)

This commit is contained in:
Josh McKinney 2024-01-24 08:22:46 -08:00 committed by GitHub
parent 7f42ec9713
commit 6e76729ce8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 6 additions and 6 deletions

View file

@ -328,7 +328,7 @@ Links to images to make them easier to update in bulk. Use the following script
the examples to the images branch. (Requires push access to the branch).
```shell
examples/generate.bash
examples/vhs/generate.bash
```
-->

View file

@ -25,12 +25,12 @@ set -o pipefail
# ensure that running each example doesn't have to wait for the build
cargo build --examples --features=crossterm,all-widgets
for tape in examples/*.tape; do
gif=${tape/examples\//}
gif=${gif/.tape/.gif}
~/go/bin/vhs $tape --quiet
for tape_path in examples/vhs/*.tape; do
tape_file=${tape_path/examples\/vhs\//} # strip the examples/vhs/ prefix
gif_file=${tape_file/.tape/.gif} # replace the .tape suffix with .gif
~/go/bin/vhs $tape_path --quiet
# this can be pasted into the examples README.md
echo "[${gif}]: https://github.com/ratatui-org/ratatui/blob/images/examples/${gif}?raw=true"
echo "[${gif_file}]: https://github.com/ratatui-org/ratatui/blob/images/examples/${gif_file}?raw=true"
done
git switch images
git pull --rebase upstream images