feat: Add animated demos recorded with autocast and agg
Scenarios in demo/*.yaml are played by autocast into asciinema
recordings (.cast, playable in Gitea) and rendered as GIFs by agg for the
README. The recording tools and fonts (Inconsolata Nerd Font, Noto Color
Emoji) live in a separate mise environment:
MISE_ENV=demo mise run demo <tour|install>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
This commit is contained in:
1 parent
3caef59c36
commit
e31a1b9111
10 files changed
+1079
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# shellcheck shell=bash
|
||||
# Hidden preamble of the demos (autocast), sourced from the repository root:
|
||||
# mise activated, delta as git pager, demo profile absent from LXD.
|
||||
eval "$(mise activate bash)"
|
||||
export GIT_PAGER="delta --paging=never"
|
||||
DEMO_PROFILE=unattended-upgrades
|
||||
DEMO_FILE=profiles/system/unattended-upgrades.profile.yaml
|
||||
if lxc profile show "$DEMO_PROFILE" >/dev/null 2>&1; then
|
||||
echo "Profile $DEMO_PROFILE is already installed in LXD: the demo would modify it" >&2
|
||||
exit 1
|
||||
fi
|
||||
# Demo epilogue: restore the repository file as it was before the demo
|
||||
# (uncommitted changes included) and remove the demo profile
|
||||
DEMO_BACKUP=$(mktemp)
|
||||
cp "$DEMO_FILE" "$DEMO_BACKUP"
|
||||
demo_cleanup() {
|
||||
cp "$DEMO_BACKUP" "$DEMO_FILE" && rm -f "$DEMO_BACKUP"
|
||||
lxc profile delete "$DEMO_PROFILE" >/dev/null 2>&1 </dev/null
|
||||
}
|
||||
Reference in new issue
Block a user