-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# How to generate eCalc CLI gifs for documentation | ||
|
||
Install `vhs` as per their [documentation](https://github.com/charmbracelet/vhs?tab=readme-ov-file#installation), then restart your shell. | ||
|
||
Create a venv and install `libecalc` in this directory. | ||
|
||
```sh | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install libecalc | ||
``` | ||
|
||
The `.tape`-file is the script showing what will be run when creating the `.gif`. | ||
|
||
To generate a new `.gif`, run `vhs` with the desired `.tape` file.: | ||
|
||
```sh | ||
vhs selftest.tape | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Output selftest.gif | ||
|
||
Set Framerate 60 | ||
Set WindowBar Colorful | ||
Set BorderRadius 10 | ||
Set Margin 20 | ||
Set MarginFill "#181926" | ||
Set Theme "Catppuccin Macchiato" | ||
Set Width 1300 | ||
Set Height 600 | ||
Set Shell bash | ||
|
||
Hide | ||
Type@50ms "source venv/bin/activate; clear" | ||
Enter | ||
Show | ||
|
||
Type "ecalc --version" | ||
Sleep 0.5s | ||
Enter | ||
Sleep 5s | ||
|
||
Enter 2 | ||
Type "ecalc selftest" | ||
Sleep 0.5s | ||
Enter | ||
Sleep 5s |