Skip to content

Commit

Permalink
Add a hacky (but easy) way to quickly render some visual output.
Browse files Browse the repository at this point in the history
  • Loading branch information
vytas7 committed Sep 18, 2024
1 parent 33e3b77 commit 21b87b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples-dark/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory is preserved for the output from rendering examples.
1 change: 1 addition & 0 deletions examples-light/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory is preserved for the output from rendering examples.
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ skip_install = True
commands =
ruff check
ruff format --check

[testenv:render-examples]
deps =
Pillow
commands =
# TODO(vytas): Make font name (auto-) configurable, not hardcoded.
pygmentize example-code/document.md -O 'font_name=SourceCodePro-Medium,font_size=24,style=falconry-dark' -o examples-dark/document.png
pygmentize example-code/document.md -O 'font_name=SourceCodePro-Medium,font_size=24,style=falconry-light' -o examples-light/document.png

0 comments on commit 21b87b8

Please sign in to comment.