Add the schema for the place registry and the record's place fields

This commit is contained in:
swaits committed 2026-11-20 09:21:16 -07:00
1 parent fe2306d90b
commit aad93a246c
5 files changed
+107 -5

No files matched your search

+6
View File
@@ -4,6 +4,7 @@
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)
places.toml [[place]] the parks, mountain ranges and wilderness areas records name
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
@@ -37,6 +38,11 @@ def authors(repo_root):
return load(repo_root, "authors.toml", "author")
def places(repo_root):
"""The [[place]] entries of places.toml: the place registry."""
return load(repo_root, "places.toml", "place")
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")