Skip to content

Commit

Permalink
Add script for regenerating doc images
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnLidbetter committed Nov 4, 2024
1 parent 0fc6ecc commit 3709299
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
Binary file modified doc/images/example-report-page-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/example-report-page-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/example-report-page-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/example_problemset/.crifx/crifx-report.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
\definecolor{insufficientred}{RGB}{255,100,100}%
\definecolor{sufficientgreen}{RGB}{0,210,0}%
\title{CRIFX Contest Preparation Status Report}%
\author{}%
\date{Compiled \today~at \DTMcurrenttime\DTMcurrentzone~for commit b0d8fbe9}%
\author{CRIFX 0.1.4}%
\date{Report compiled \today~at \DTMcurrenttime\DTMcurrentzone~for commit 0fc6ecc9}%
%
\begin{document}%
\normalsize%
Expand Down
Binary file modified examples/example_problemset/crifx-report.pdf
Binary file not shown.
14 changes: 14 additions & 0 deletions scripts/make_doc_images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e

test -e pyproject.toml

magick -quality 200 -density 200 -scene 1 \
examples/example_problemset/crifx-report.pdf \
doc/images/example-report-page-%d.png

for png_file in doc/images/example-report-page-*.png
do
magick "${png_file}" -background white -alpha remove -alpha off "${png_file}"
done

0 comments on commit 3709299

Please sign in to comment.