paceboard/scripts/generate.py

18 lines
562 B
Python
Raw Normal View History

2021-06-25 18:55:15 +01:00
#!/usr/bin/env python3
2021-06-23 21:26:35 +01:00
### Generate all site pages using csv files.
from utils.gen import index as gen_index
from utils.gen import categories as gen_categories
from utils.gen import runs as gen_runs
print("Generating homepage...")
2021-06-24 00:38:47 +01:00
gen_index.generate("../templates", "..", "index.html")
print("Generating leaderboard pages for each category...")
gen_categories.generate("../templates", "../categories", "category.html")
2021-06-25 21:13:36 +01:00
print("Generating details pages for each run...")
gen_runs.generate("../templates", "../runs", "run.html")
2021-06-23 21:26:35 +01:00
print("Done generating site!")