Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/vhs/advanced-features.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/vhs/advanced-features.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Type "# StructKit Advanced Features Demo"
Enter
Sleep 1s

Type "source .venv/bin/activate"
Enter
Sleep 500ms

Type "# Generate schema for VSCode autocompletion"
Enter
Type "mkdir -p .vscode"
Expand Down
4 changes: 4 additions & 0 deletions docs/vhs/basic-usage.tape
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Type "# StructKit - Basic Usage Demo"
Enter
Sleep 1s

Type "source .venv/bin/activate"
Enter
Sleep 500ms

Type "# First, let's see what structures are available"
Enter
Sleep 500ms
Expand Down
Binary file modified docs/vhs/install.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/vhs/mappings-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/vhs/mappings-demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Type "# StructKit Mappings Demo"
Enter
Sleep 1s

Type "source .venv/bin/activate"
Enter
Sleep 500ms

Type "# Create a simple mapping file with team data"
Enter
Type "cat > team-mapping.yaml << EOF"
Expand Down
Binary file modified docs/vhs/multiple-mappings.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/vhs/multiple-mappings.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Type "# StructKit Multiple Mappings Demo"
Enter
Sleep 1s

Type "source .venv/bin/activate"
Enter
Sleep 500ms

Type "# Create company info mapping"
Enter
Type "cat > company-info.yaml << EOF"
Expand Down
Binary file modified docs/vhs/remote-content.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/vhs/remote-content.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Type "# StructKit Remote Content Demo"
Enter
Sleep 1s

Type "source .venv/bin/activate"
Enter
Sleep 500ms

Type "# Create configuration with remote files"
Enter
Type "cat > remote-example.yaml << EOF"
Expand Down
Binary file modified docs/vhs/schema-generation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/vhs/schema-generation.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Type "# StructKit Schema Generation Demo"
Enter
Sleep 1s

Type "source .venv/bin/activate"
Enter
Sleep 500ms

Type "# Generate JSON schema for VSCode autocompletion"
Enter
Type "structkit generate-schema"
Expand Down
Binary file modified docs/vhs/usage.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/vhs/yaml-config.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/vhs/yaml-config.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Type "# StructKit YAML Configuration Demo"
Enter
Sleep 1s

Type "source .venv/bin/activate"
Enter
Sleep 500ms

Type "# Create a simple project structure configuration"
Enter
Type "cat > my-project.yaml << EOF"
Expand Down
44 changes: 44 additions & 0 deletions scripts/generate-gifs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash
set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"

cd "$PROJECT_ROOT"

echo "==> Running VHS tapes..."
for tape in docs/vhs/*.tape; do
echo " Running: $tape"
vhs "$tape"
done

echo "==> Cleaning up demo artifacts..."

# Files created by tapes (skip any that are git-tracked)
for f in \
remote-demo.yaml \
remote-example.yaml \
project-with-mapping.yaml \
team-mapping.yaml \
company-info.yaml \
environments.yaml \
multi-mapping-project.yaml \
my-project.yaml \
.vscode/struct-schema.json \
.vscode/struct-plugins.schema.json; do
git ls-files --error-unmatch "$f" &>/dev/null || rm -f "$f"
done

# Directories created by tapes
rm -rf \
remote-project/ \
remote-demo/ \
my-python-app/ \
backend-project/ \
dev-app/ \
my-custom-project/

# Remove .vscode dir if now empty
[ -d .vscode ] && rmdir --ignore-fail-on-non-empty .vscode

echo "==> Done! GIFs are in docs/vhs/"
Loading