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
|
|
|
|
|
2021-06-25 04:52:22 +01:00
|
|
|
print("Generating homepage...")
|
2021-06-24 00:38:47 +01:00
|
|
|
gen_index.generate("../templates", "..", "index.html")
|
2021-06-25 04:52:22 +01:00
|
|
|
|
2021-06-27 05:30:26 +01:00
|
|
|
print("Generating details pages for each run...")
|
|
|
|
gen_runs.generate("../templates", "../runs", "run.html")
|
|
|
|
|
2021-06-25 04:52:22 +01:00
|
|
|
print("Generating leaderboard pages for each category...")
|
|
|
|
gen_categories.generate("../templates", "../categories", "category.html")
|
|
|
|
|
2021-06-23 21:26:35 +01:00
|
|
|
|
|
|
|
print("Done generating site!")
|