diff --git a/modules/scholar/builder/contexts/validators.py b/modules/scholar/builder/contexts/validators.py index a91860b5..87e52798 100644 --- a/modules/scholar/builder/contexts/validators.py +++ b/modules/scholar/builder/contexts/validators.py @@ -1,15 +1,15 @@ from enschema import Schema, Optional, Regex -from core.builder.validator import FileSystemValidator, File +from core.builder.validator import FileSystemValidator, File, FileOrLink class ScholarValidator(FileSystemValidator): _schema = Schema({ - Optional(Regex(r'[\w-]+\.(png|jpg|svg|gp|py|dat)')): File, + Optional(Regex(r'[\w-]+\.(png|jpg|svg|gp|py|dat)')): FileOrLink, Optional(Regex(r'[\w-]+')): { Optional('problem.md'): File, Optional('solution.md'): File, - Optional(Regex(r'[\w-]+\.(png|jpg|svg|gp|py|dat)')): File, + Optional(Regex(r'[\w-]+\.(png|jpg|svg|gp|py|dat)')): FileOrLink, }, Optional('text.md'): File, 'meta.yaml': File,