Skip to content

Commit

Permalink
[export] Add problem-slides.pdf to zip
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsijm committed Nov 12, 2023
1 parent 951eaf4 commit 14c689c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions bin/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def build_contest_zip(problems, zipfiles, outfile, statement_language):
[
'problems.yaml',
'contest.yaml',
'problem-slides.pdf',
'samples.zip',
]
+ glob(Path('.'), f'contest*.{statement_language}.pdf')
Expand Down
11 changes: 7 additions & 4 deletions bin/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,11 +1022,14 @@ def run_parsed_arguments(args):
contest, problems, tmpdir, statement_language, web=True
)
if not config.args.no_solutions:
success &= latex.build_contest_pdfs(
contest, problems, tmpdir, statement_language, solutions=True
success &= latex.build_contest_pdf(
contest, problems, tmpdir, build_type=latex.TYPE_PROBLEM_SLIDE
)
success &= latex.build_contest_pdfs(
contest, problems, tmpdir, statement_language, solutions=True, web=True
success &= latex.build_contest_pdf(
contest, problems, tmpdir, statement_language, build_type=latex.TYPE_SOLUTION
)
success &= latex.build_contest_pdf(
contest, problems, tmpdir, statement_language, build_type=latex.TYPE_SOLUTION, web=True
)

outfile = contest + '.zip'
Expand Down

0 comments on commit 14c689c

Please sign in to comment.