Skip to content

Commit

Permalink
docs: Add example video (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Jun 10, 2024
1 parent 47e5096 commit 5a117cf
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 0 deletions.
Binary file added .github/assets/demo/demo-dark.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 added .github/assets/demo/demo-dark.mp4
Binary file not shown.
39 changes: 39 additions & 0 deletions .github/assets/demo/demo-dark.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Output .github/assets/demo/demo-dark.mp4
Output .github/assets/demo/demo-dark.gif

Set Theme "rose-pine-moon"
Set Shell "bash"
Set FontSize 32
Set Width 1920
Set Height 750

Hide
Type "export PATH=$(pwd)/target/debug:$PATH" Enter
Type "rm -rf $HOME/pixi-pack-example" Enter
Type "mkdir -p $HOME/pixi-pack-example" Enter
Type "cp examples/simple-python/pixi.* $HOME/pixi-pack-example" Enter
Type "pushd $HOME/pixi-pack-example" Enter
Type "clear" Enter
Sleep 1s
Show

Type@150ms "ls" Sleep 1s Enter
Sleep 3s

Type@150ms "pixi-pack pack" Sleep 1s Enter
Sleep 5s

Type "ls" Sleep 1s Enter
Sleep 3s

Type@150ms "pixi-pack unpack environment.tar" Sleep 1s Enter
Sleep 4s

Type@150ms "ls" Sleep 1s Enter
Sleep 4s

Type@150ms "source activate.sh" Sleep 1s Enter
Sleep 3s

Type@150ms "which python" Sleep 1s Enter
Sleep 10s
Binary file added .github/assets/demo/demo-light.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 added .github/assets/demo/demo-light.mp4
Binary file not shown.
39 changes: 39 additions & 0 deletions .github/assets/demo/demo-light.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Output .github/assets/demo/demo-light.mp4
Output .github/assets/demo/demo-light.gif

Set Theme "rose-pine-dawn"
Set Shell "bash"
Set FontSize 32
Set Width 1920
Set Height 750

Hide
Type "export PATH=$(pwd)/target/debug:$PATH" Enter
Type "rm -rf $HOME/pixi-pack-example" Enter
Type "mkdir -p $HOME/pixi-pack-example" Enter
Type "cp examples/simple-python/pixi.* $HOME/pixi-pack-example" Enter
Type "pushd $HOME/pixi-pack-example" Enter
Type "clear" Enter
Sleep 1s
Show

Type@150ms "ls" Sleep 1s Enter
Sleep 3s

Type@150ms "pixi-pack pack" Sleep 1s Enter
Sleep 5s

Type "ls" Sleep 1s Enter
Sleep 3s

Type@150ms "pixi-pack unpack environment.tar" Sleep 1s Enter
Sleep 4s

Type@150ms "ls" Sleep 1s Enter
Sleep 4s

Type@150ms "source activate.sh" Sleep 1s Enter
Sleep 3s

Type@150ms "which python" Sleep 1s Enter
Sleep 10s
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

</div>

![pixi-pack demo](.github/assets/demo/demo-light.gif#gh-light-mode-only)
![pixi-pack demo](.github/assets/demo/demo-dark.gif#gh-dark-mode-only)

## 🗂 Table of Contents

- [Introduction](#-introduction)
Expand Down
6 changes: 6 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ compilers = ">=1.7.0"
conda = "*"
micromamba = "*"

# [feature.demo.dependencies]
# vhs = "*"
# [feature.demo.tasks]
# demo = "vhs .github/assets/demo/demo-light.tape && vhs .github/assets/demo/demo-dark.tape"

[feature.lint.dependencies]
pre-commit = "*"
prettier = "*"
Expand All @@ -31,4 +36,5 @@ pre-commit-run = "pre-commit run -a"

[environments]
default = ["lint", "test"]
# demo = { features = ["demo"], no-default-feature = true }
lint = { features = ["lint"], no-default-feature = true }

0 comments on commit 5a117cf

Please sign in to comment.