Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically generate participant list #105

Merged
merged 2 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test: generation ## Test the code with pytest
@echo "🚀 Testing code: Running pytest"
@poetry run pytest

generation: submission-generation ## Files generation for the website
generation: submission-generation participant-data ## Files generation for the website

.PHONY: build
build: clean-build ## Build wheel file using poetry
Expand All @@ -43,8 +43,9 @@ help:

GENERATED_SCHEMA_FILE=web/content/solver_submission/schema.json
GENERATED_SCHEMA_HTML=web/content/solver_submission/schema.html
PARTICIPANT_DATA_FILE=web/data/participants.json

.PHONY: submission-doc submission-generation
.PHONY: submission-doc submission-generation participant-data
submission-generation:
@echo "🚀 Generating schema to $(GENERATED_SCHEMA_FILE)"
@poetry run smtcomp dump-json-schema $(GENERATED_SCHEMA_FILE)
Expand All @@ -54,5 +55,9 @@ submission-doc: submission-generation
@echo " Needs 'pip install json-schema-for-humans'"
@poetry run generate-schema-doc --expand-buttons --no-link-to-reused-ref $(GENERATED_SCHEMA_FILE) $(GENERATED_SCHEMA_HTML)

participant-data:
@echo "🚀 Generating participant data to $(PARTICIPANT_DATA_FILE)"
@poetry run smtcomp show-json submissions/*.json > $(PARTICIPANT_DATA_FILE)

hugo-server:
(cd web; hugo server)
Loading
Loading