Make a trail's length one end-to-end walk, and put the map and the trails in the first screen
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

Lengths and what belongs:
- A trail's length is now the end-to-end length of its canonical path: one
  branch at a split, no side trails, no system totals. A holder's larger
  figure and the built length of an unfinished trail are separate fields
  (`system_km`, `system_note`, `built_km`), shown under the length.
- Corrected: Florida Trail 1,500 to 1,130 mi, American Discovery Trail
  6,800 to 5,008 mi, Ozark Trail to 230 mi, General Crook Trail to 138 mi,
  Sheltowee Trace to 343 mi, Allegheny Trail to 316 mi, Great Eastern
  Trail to 1,800 mi.
- The Florida Trail's and the Ice Age Trail's main tracks are re-cut as
  one walk; the other branches are alternates.
- A trail must be walkable from end to end today. Nine trails that are
  not, are a network, or fall under the floor move to the "Considered and
  left out" list. The Bayou State Trail is added. 196 trails.

Pages:
- The trail page puts the map and At a glance directly under the title;
  the home page drops its oversized hero and shows the trails and the map
  at once. Place and list pages put the list beside the map.
- Every map starts by itself once the page is ready, over a drawing of
  the tracks that is in the page from the first paint.
- Lists is in the header. The home page shows ten lists chosen in
  `collections.toml`. Tables have equal columns and stack on a phone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-16 18:57:21 -07:00
1 parent f2d3b71810
commit 8637181a2b
145 files changed
+2178 -1455

No files matched your search

+4 -1
View File
@@ -108,6 +108,8 @@ def method_page(records, site, repo_root):
gaps = sum(1 for r, _ in ver if r.get("source", {}).get("length_gap_note"))
mid = statistics.median(abs(d) for _, d in ver) if ver else 0
no_track = sum(1 for r in records if not common.has_line(r))
n_system = sum(1 for r in records if r.get("system_km"))
n_built = sum(1 for r in records if r.get("built_km"))
elev = [(r, elevation.get(r)) for r in records if elevation.get(r)]
src = collections.Counter((e["source"].get("model", ""), e["source"].get("smoothing", ""),
e["source"].get("sample_spacing_m")) for _, e in elev if e.get("source"))
@@ -130,7 +132,8 @@ def method_page(records, site, repo_root):
f"length was measured and checked against the published length."), [("Trails", "/"), ("About", "/about/")])
+ f"""<div class="container section place"><div class="prose">
<h2>Length</h2>
<p>{esc(_sentence(meaning.get("length_km", "")))} It is the figure the trail&rsquo;s holder or author gives, and each record says where it comes from. The lists and pages show it in miles with kilometres after.</p>
<p>A trail&rsquo;s length here is the end-to-end length of its canonical path: one walk from one end to the other, taking one branch at a split, leaving out side trails and counting no stretch twice. It is the figure the trail&rsquo;s holder or author gives for that walk, and each record says where it comes from. A trail that cannot be walked from end to end today is not listed. The lists and pages show the length in miles with kilometres after.</p>
<p>Some holders also publish a larger figure for a whole system, or a planned total. A record keeps it apart as the whole system, with what it counts, and no list, length band or time estimate uses it. {n_system} of the {n} records have one. A trail that can be walked through but is partly unbuilt keeps the holder&rsquo;s end-to-end route as its length and gives the built length beside it. {n_built} of the {n} records give one.</p>
<p>Where a track is included, its length is measured along the track as a geodesic length and compared with the published figure. The difference is the measured length minus the published length, as a percent of the published length. Track ends within 100 metres are joined, and the number of parts left is shown.</p>
<p>Across the {len(ver)} measured tracks, the middle difference is {mid:.1f} percent.</p>
{pagekit.table(["Measured against published", "Tracks", "Share"], rows, caption="How the measured tracks compare", numeric=(1, 2))}