Contest schema
contest.rbx.yml
Contest
Bases: BaseModel
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
Name of this contest. |
required |
problems |
List[ContestProblem]
|
List of problems in this contest. |
[]
|
statements |
List[ContestStatement]
|
Configure statements in this contest, per language. |
None
|
Source code in robox/box/contest/schema.py
ContestProblem
Bases: BaseModel
Parameters:
Name | Type | Description | Default |
---|---|---|---|
short_name |
str
|
Short name of the problem. Usually, just an uppercase letter, but can be a sequence of uppercase letters followed by a number. |
required |
path |
Path | None
|
Path to the problem relative to the contest package directory. If not specified, will expect the problem to be in ./{short_name}/ folder. |
None
|
color |
str | None
|
Hex-based color that represents this problem in the contest. |
None
|
Source code in robox/box/contest/schema.py
ContestStatement
Bases: BaseModel
Parameters:
Name | Type | Description | Default |
---|---|---|---|
language |
str
|
Language code for this statement. |
'en'
|
title |
str
|
Title of the contest in this language. |
required |
location |
str | None
|
Location of the contest in this language. |
None
|
date |
str | None
|
Date of the contest in this language. |
None
|
path |
Path
|
Path to the input statement file. |
required |
type |
StatementType
|
Type of the input statement file. |
required |
joiner |
JoinTexToPDF
|
Joiner to be used to build the statement. This determines how problem statements will be joined into a single contest statement. |
required |
steps |
List[Union[TexToPDF, JinjaTeX, roboxToTeX]]
|
Describes a sequence of conversion steps that should be applied to the statement file of this contest. Usually, it is not necessary to specify these, as they can be inferred from the input statement type and the output statement type, but you can use this to force certain conversion steps to happen. |
[]
|
configure |
List[Union[TexToPDF, JinjaTeX, roboxToTeX]]
|
Configure how certain conversion steps should happen when applied to the statement file of this contest. Different from the |
[]
|
assets |
List[str]
|
Assets relative to the contest directory that should be included while building
the statement. Files will be included in the same folder as the statement file.
Can be glob pattern as well, such as |
[]
|
override |
ProblemStatementOverride | None
|
Override configuration for problem statements. |
None
|
Source code in robox/box/contest/schema.py
ProblemStatementOverride
Bases: BaseModel
Parameters:
Name | Type | Description | Default |
---|---|---|---|
configure |
List[Union[TexToPDF, JinjaTeX, roboxToTeX]]
|
Configure how certain conversion steps should happen when applied to the statement file. Different from the |
[]
|