Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add example video #23

Merged
merged 9 commits into from
Jun 10, 2024
Merged
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 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"

Comment on lines +22 to +26
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not include this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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 }