Show an estimated season as an estimate on the trail page, in lists and tables, and in the month filter; say how seasons are sourced and tested on the reference page

This commit is contained in:
swaits committed 2026-11-20 13:26:51 -07:00
1 parent 713fff78df
commit e95131833b
20 files changed
+481 -103

No files matched your search

+13
View File
@@ -4,11 +4,13 @@
collections.toml [[collection]] named sets of trails set side by side (olt/standing.py)
[[list]] which lists the home page shows, and in what order (olt/home.py)
authors.toml [[author]] route authors, and the words about the people among them (olt/authors.py)
tools/season_blind_test.json how the judged seasons did against the seasons pages state (olt/reference.py)
Each is checked by tools/validate.py and described in docs/schema.md. Like left-out.toml, a file
is looked for in the repository being built and then in this one, so a test repository without
one still builds.
"""
import json
import os
import tomllib
@@ -40,3 +42,14 @@ def authors(repo_root):
def lists(repo_root):
"""The [[list]] entries of collections.toml: a list's key, and `home`, its place in the home page's row."""
return load(repo_root, "collections.toml", "list")
def blind_test(repo_root):
"""The blind test of the judged seasons (tools/season_blind_test.json, written by
tools/season_judge.py score), or None when there is none."""
for base in (repo_root, REAL_ROOT):
path = os.path.join(base or REAL_ROOT, "tools", "season_blind_test.json")
if os.path.isfile(path):
with open(path, encoding="utf-8") as f:
return json.load(f)
return None