Enter the compiler
The v0.1 gem lives in ruby/. Ruby 3.3+ and Bundler are required.
cd ruby
bundle install
Emit the four cuts
Slides (HTML + PPTX), searchable PDF, and shot-ready video from the example fixtures.
bundle exec trunkim build ../examples/l1-product-review.loomd --out ../dist/l1 --emit html,pptx
bundle exec trunkim build ../examples/l2-handout.loomd --target pdf --out ../dist/l2
bundle exec trunkim build ../examples/l3-launch-spot.loomd --target video --out ../dist/l3
Or smoke the whole path
One command for local full acceptance when Typst / Chrome / ffmpeg are installed.
bundle exec rake smoke
Outputs
| Cut | Path |
|---|---|
| HTML slides | dist/l1/index.html |
| PPTX | dist/l1/l1-product-review.pptx |
dist/l2/l2-handout.pdf | |
| MP4 + VTT | dist/l3/l3-launch-spot.mp4 |
Dependencies
| Need | Tool |
|---|---|
| Always | Ruby 3.3+, Bundler |
| Typst | |
| Video | Chrome or Edge + ffmpeg |
| Voice | pip install edge-tts |
Day-to-day commands
bundle exec trunkim validate ../examples/l1-product-review.loomd
bundle exec trunkim ir ../examples/l3-launch-spot.loomd --target video
bundle exec trunkim build <file.loomd> --out DIR [--target slides|pdf|video] [--emit html,pptx,pdf,mp4]
Clone the repository that contains ruby/, examples/, and docs/. This page is the public face of ruby/README.md.