docs: add VHS-based interactive screenshot generation#1862
docs: add VHS-based interactive screenshot generation#1862bearomorphism merged 10 commits intocommitizen-tools:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1862 +/- ##
=======================================
Coverage 97.98% 97.98%
=======================================
Files 60 60
Lines 2686 2686
=======================================
Hits 2632 2632
Misses 54 54 ☔ View full report in Codecov by Sentry. |
|
lol. I found that I can't edit this PR title name after I created it. |
|
not really a feat (at least not to commitizen itself), so I changed it to docs |
I heard from my friend that some github preview features have so terrible UI that people cannot find where to edit the PR title. |
bearomorphism
left a comment
There was a problem hiding this comment.
Thank you for your contribution of this great documentation improvement! The new gifs look beautiful!
Nothing is really blocking this PR but the comments related to demo.gif.
|
As a follow up, this can also be used to regenerate |
|
Thanks @bearomorphism I created a separate script called Here is my reorganized directory structure. And I also modified Let me know if you have any suggestions or preferences for the placement of tape/gif files. |
Description
This PR adds support for generating interactive GIF screenshots for
cz initandcz commitcommands using VHS (Video Home System), a tool for generating terminal GIFs from code.Why VHS?
VHS is a modern tool for generating terminal recordings as GIFs.
Benefits:
Checklist
Was generative AI tooling used to co-author this PR?
Code Changes
uv run poe alllocally to ensure this change passes linter check and testspython scripts/gen_cli_help_screenshots.pylocallyinit.gifandcommit.gifare generated correctlygen_cli_help_screenshots()function unchangedExpected Behavior
Local Generation: Running
python scripts/gen_cli_help_screenshots.pyshould generate:docs/images/cli_help/(CLI help screenshots)docs/images/init.gif(interactive demo ofcz init)docs/images/commit.gif(interactive demo ofcz commit)CI/CD: When documentation workflow runs:
Steps to Test This Pull Request
Prerequisites
Local Testing
Additional Context