Say who each route author is, with a biography from the database
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

authors.toml gains a summary, a biography, the author's own site and
the pages each was read on, for people only. An author's page now
opens with the name and the summary, shows a joint credit only on the
route it applies to, and carries an About section after the routes.
People with three or more routes lead the authors page. Organisations
get no biography.

35 people have a summary and a biography and 4 a summary only, each
statement checked against the page it cites. Wilderness Mindset is
recorded as two people. The Sawtooth Wilderness High Route is credited
to Eric Poulin, who names himself as the author of Seeking Lost.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-17 12:09:34 -07:00
1 parent d7fb6483a2
commit f467fcb560
15 files changed
+1136 -123

No files matched your search

+14
View File
@@ -1,5 +1,19 @@
# Changelog
## 2026-11-17 - An author's page says who the author is
- An author's page now opens with the author's name, under the small "Route author" label the list pages use, and one sentence that says who the author is. Under it is one quiet line: how many routes are on this site, their range in miles, and the author's own site. The sentence about how the records credit the author is gone, and so is "their own page": the page uses the name and no pronoun. Where there is no sentence yet, the page opens with a plain sentence of how many routes and how long. The routes follow as rows beside the map, as before.
- A route credited to the author together with others says so in its own row, "With Ryan Jordan", with the other name linked to that author's page. That row is the only place a shared credit is mentioned, so a page no longer suggests that every route is shared.
- After the rows, under "About" and the author's name, comes a paragraph about the author, with the pages it was read on and the date it was checked in small print. Each route in brief follows under its own heading.
- `/authors/` is led by the people with three or more routes, each with their name, their sentence and their routes as rows. Only people lead the page. An organisation, or a credit with no entry, never does, however many routes it has. The other authors follow, each with their sentence where there is one, and organisations come last.
- `authors.toml` has new optional fields for an author: `url` (their own site), `summary` (one sentence of at most 160 characters that begins with the name), `bio` (one paragraph of 40 to 130 words), `checked` (the date both were checked) and `[[author.source]]` (the pages they were read on, each with `url` and `publisher`). A summary or bio needs a source and a date. A new `kind`, `people`, is for a pair credited together or a person known by a blog's name: human, so it may carry the words, but not marked up as one person. The checker in `tools/validate.py` enforces the limits and refuses unknown fields. The schema and the file's own header describe it.
- The words about an author are for people only. An association, an agency or any other organisation keeps a plain page listing its routes, and the checker refuses a summary, a bio, a date or a source on one.
- A person's page gives search engines the sentence as its description, and the author's own site as the Person's `url` and `sameAs`. The page title is the author's name and the routes.
- 39 authors now have a summary. 35 of them also have a biography, and 4 have a summary only. Every statement was checked against the page it cites, and the pages are listed in small print under each biography. Nothing is copied from them. Organisations are not given one. Wilderness Mindset is recorded as two people, Alex Maier and Amy L. Robin, who publish under that name, and the same is done for John and Monica Chapman and for Amy and James of Doing Miles. Steve Myers, credited with the Great Plains Trail, has a page of his own. Four credits gained an entry for this.
- The Sawtooth Wilderness High Route is now credited to Eric Poulin, where the record had called him "the author of the SeekingLost blog". The author of Seeking Lost names himself as Eric Poulin in the description of his own YouTube channel and in a published interview, and the Basin and Range Trail and the Mojave-Sonoran Trail, published on the same site, already credit him by name. With that route he has three, so he is among the authors who lead `/authors/`, with the people who have three or more routes: Brett Tucker, Andrew Skurka, Wilderness Mindset, Cam Honan and Eric Poulin. The record's history says what changed and why. No page is made for "the author of the SeekingLost blog" any more.
- Where a trail's name has a dash in it, such as the Tahoe-Yosemite Trail, the summary and biography write a hyphen, because the checker keeps dashes out of the words about an author.
- No trail's facts changed, except the credit on the Sawtooth Wilderness High Route.
## 2026-11-17 - A ferry or a bus does not rule a trail out
- The inclusion rule said a trail must be walkable from one end to the other today. It now says more plainly that this is a judgement the maintainer makes case by case, not a mechanical test. A trail must be one route a person can travel from one end to the other on foot. A ferry, shuttle or bus link across water or a closed stretch, named by the holder or the route's author as the way through, does not rule a trail out. The record says how each such link is made, and the track has a gap there. A trail published only as separate pieces, a network with no through route, or a gap with no way across is still left out. Road links the holder publishes as the way through, and evidence that people have walked a trail end to end, still count. The wording is changed in the README, the contributing guide, the schema, the refresh rules and the method pages.
+1 -1
View File
@@ -229,7 +229,7 @@ A route is a trail that a hiker worked out and published. The record names the a
| route-in-between | Route In Between | US | AZ, UT, ID | 4344 | Kevin "LarryBoy" DeVries | open | no | [A Complete Guide to the Deseret Hiking Route](http://www.lbhikes.com/p/a-complete-guide-to-deseret-hiking-route.html) (free) |
| san-diego-trans-county-trail | San Diego Trans County Trail | US | CA | 249 | Sea to Sea Trail Foundation (folded); guide by Liz Thomas | unclear | no | [San Diego Trans County Trail](https://www.treelinereview.com/where-to-go/san-diego-trans-county-trail) (free) |
| santa-fe-to-taos | Santa Fe to Taos Thru-Hike | US | NM | 212 | Pam Neely | sold | no | [The Santa Fe to Taos Thru-Hike Guidebook](https://santafetotaos.org/guidebook/) (purchase) |
| sawtooth-wilderness-high-route | Sawtooth Wilderness High Route | US | ID | 143 | the author of the SeekingLost blog | open | no | [Sawtooth Wilderness High Route trip report and GPX](https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/) (free) |
| sawtooth-wilderness-high-route | Sawtooth Wilderness High Route | US | ID | 143 | Eric Poulin | open | no | [Sawtooth Wilderness High Route trip report and GPX](https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/) (free) |
| sea-to-sea-route | Sea-to-Sea Route | US | ND, MN, WI, MI, OH, PA, NY, VT, MT, ID, WA | 12513 | Ron Strickland | open | no | [Sea-to-Sea Route overview and route description](https://andrewskurka.com/adventures/sea-to-sea-route/overview/) (free) |
| sierra-grand-traverse | Sierra Grand Traverse | US | CA | 322 | John and Monica Chapman | sold | no | [Sierra Grand Traverse: An Epic Route Across the Range of Light](https://www.mountaineers.org/books/books/sierra-grand-traverse-an-epic-route-across-the-range-of-light) (purchase) |
| sierra-high-route | Sierra High Route | US | CA | 314 | Steve Roper | sold | no | [Sierra High Route, 2nd Edition: Traversing Timberline Country](https://www.mountaineers.org/books/books/sierra-high-route-2nd-edition-traversing-timberline-country) (purchase) |
+1 -1
View File
@@ -217,7 +217,7 @@ Page: the creator's or publisher's own page for the guide, given in each record'
| route-in-between | Kevin "LarryBoy" DeVries (publishes the route) | [source page](http://www.lbhikes.com/p/a-complete-guide-to-deseret-hiking-route.html) | none-stated | record only |
| san-diego-trans-county-trail | Sea to Sea Trail Foundation (folded); current guide by Liz Thomas, Treeline Review | [source page](https://www.treelinereview.com/where-to-go/san-diego-trans-county-trail) | none-stated | record only |
| santa-fe-to-taos | Pam Neely and the Santa Fe to Taos Trail non-profit (publish the route) | [source page](https://santafetotaos.org/route/) | none-stated | record only |
| sawtooth-wilderness-high-route | the author of the SeekingLost blog, who publishes the route | [source page](https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/) | none-stated | record only |
| sawtooth-wilderness-high-route | Eric Poulin, who publishes the route | [source page](https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/) | none-stated | record only |
| sea-to-sea-route | Ron Strickland, with the overview published by Andrew Skurka | [source page](https://andrewskurka.com/adventures/sea-to-sea-route/overview/) | none-stated | record only |
| sentier-international-appalaches | Sentier international des Appalaches (Québec); IAT New Brunswick (publishes the trail; no open geometry found) | [source page](https://www.openstreetmap.org/relation/9318808) | ODbL-1.0 | track |
| shawangunk-ridge-trail | New York-New Jersey Trail Conference (publishes the trail) | [source page](https://www.openstreetmap.org/relation/3934864) | ODbL-1.0 | track |
+496 -15
View File
@@ -1,17 +1,26 @@
# Route authors, by the exact credit each route's record gives (`route.creator`). Fields are in
# docs/schema.md (the authors section).
#
# A route's credit is free text. An author with an entry here is a named person or organisation, and
# every exact credit that names them is listed, so one page lists all their routes:
# A route's credit is free text. An author with an entry here is a named person, a pair of people,
# or an organisation, and every exact credit that names them is listed, so one page lists all their
# routes:
# - one person credited in several forms (Andrew Skurka, Brett Tucker);
# - a credit that names two or more people ("Jake Blood and Jennifer Pharr Davis") is listed under
# each of them, so the route is on each page and each page says who else is credited. Only people
# the credit names in full are given an entry: "John and Monica Chapman" and "Amy and James
# (Doing Miles)" give no full name for each, so they stand as written, as one author;
# - a person credited in one form only, so that the page can mark them up as a person. `kind`
# is "person" (the default) or "organisation".
# A credit that has no entry stands alone as its own author and is not marked up as a person: a
# nickname, a company, an association and "the author of a blog" are all left that way.
# each of them, so the route is on each page and that route's row names who else is credited;
# - a person credited in one form only, so that the page can mark them up as a person.
# `kind` is "person" (the default: one named person), "people" (human, but not one full name: a pair
# credited together, such as "John and Monica Chapman", or a pair known by one name, such as "Wilderness Mindset"; `name`
# is then the credit as written) or "organisation".
#
# The words about an author are for people only, never for an organisation, an agency or an
# association (their own pages are a link away from each trail's page). A person or people entry may
# carry `url` (their own site), `summary` (one sentence of at most 160 characters that begins with
# the name), `bio` (one paragraph of 40 to 130 words), `checked` (YYYY-MM-DD) and one or more
# [[author.source]] tables (`url`, `publisher`): the pages the summary and bio were read on. A
# summary or bio needs both `checked` and a source. An organisation may carry `url`, and nothing else
# about itself. Wording is ours: nothing is copied from a source.
#
# A credit that has no entry stands alone as its own author and is not marked up as a person.
[[author]]
name = "Andrew Skurka"
@@ -19,59 +28,243 @@ credits = [
"Andrew Skurka",
"Andrew Skurka and Ryan Jordan",
]
url = "https://andrewskurka.com/"
summary = "Andrew Skurka is a long-distance backpacker, guide and author, first to complete the Great Western Loop, the Sea-to-Sea Route and the Alaska-Yukon Expedition."
bio = "Skurka was the first person to complete the Sea-to-Sea Route, the Great Western Loop and the Alaska-Yukon Expedition. The Great Western Loop took 208 days in 2007 and covers 6,875 miles. The Alaska-Yukon Expedition covered 4,700 miles in six months. Skurka has hiked more than 30,000 miles. Backpacker named Skurka Person of the Year in 2005, and National Geographic Adventure named Skurka Adventurer of the Year in 2007. Skurka wrote The Ultimate Hiker's Gear Guide, published by National Geographic, and sells guides to high routes in the Sierra Nevada, the Wind River Range and the Colorado Front Range. Skurka Adventures leads guided trips and courses in Utah, Alaska, the High Sierra and Yellowstone. The best known of Skurka's backpacking recipes, Skurka Beans and Rice, has inspired T-shirts and bumper stickers."
checked = "2026-11-17"
[[author.source]]
url = "https://thetrek.co/andrew-skurka-on-the-best-1-backpacking-meal-ever/"
publisher = "The Trek"
[[author.source]]
url = "https://thetrek.co/backpacker-radio-live-with-andrew-skurka/"
publisher = "The Trek"
[[author.source]]
url = "https://www.gearpatrol.com/archive/a96617/30-minutes-andrew-skurka/"
publisher = "Gear Patrol"
[[author.source]]
url = "https://www.nationalgeographic.com/adventure/article/andrew-skurka-2007"
publisher = "National Geographic"
[[author.source]]
url = "https://www.penguinrandomhouse.com/books/546764/the-ultimate-hikers-gear-guide-second-edition-by-andrew-skurka/"
publisher = "Penguin Random House (for National Geographic Books)"
[[author]]
name = "Ryan Jordan"
credits = ["Andrew Skurka and Ryan Jordan"]
url = "https://ryanjordan.com/about-ryan-jordan"
summary = "Ryan Jordan is the founder and publisher of Backpacking Light and shares credit for the concept of the Great Western Loop."
bio = "Jordan is the founder and publisher of Backpacking Light, an outdoor media, education, membership and commerce company that Jordan has led for more than two decades. The concept of the 6,875-mile Great Western Loop dates to 2006 and to Jordan and Andrew Skurka, who later completed the loop."
checked = "2026-11-17"
[[author.source]]
url = "https://ryanjordan.com/about-ryan-jordan"
publisher = "Ryan Jordan Consulting"
[[author.source]]
url = "https://www.planetware.com/2268539/great-western-loop-america-longest-hiking-trail-scenic-6800-mile-journey-outdoor-adventure/"
publisher = "PlanetWare"
[[author.source]]
url = "https://thetrek.co/backpacker-radio-live-with-andrew-skurka/"
publisher = "The Trek"
[[author]]
name = "Brett Tucker"
credits = [
"Brett Tucker",
'Brett Tucker ("Blisterfree")',
'Brett Tucker ("Blisterfree") and collaborators',
'Brett Tucker ("Blisterfree") and partner, simBLISSity Ultralight Designs',
"Brett Tucker (\"Blisterfree\")",
"Brett Tucker (\"Blisterfree\") and collaborators",
"Brett Tucker (\"Blisterfree\") and partner, simBLISSity Ultralight Designs",
]
url = "https://www.simblissity.net/"
summary = "Brett Tucker created the Grand Enchantment Trail, more than 770 miles across Arizona and New Mexico, and publishes long hiking routes through Simblissity."
bio = "The Grand Enchantment Trail runs more than 770 miles across Arizona and New Mexico on foot trail, dirt road and cross-country travel, and it is Tucker's best-known route. The idea began on a 2003 hike of the Continental Divide Trail across New Mexico and took shape after Tucker hiked the Arizona Trail in 2004. The first thru-hike followed in the spring of 2005, and from 2005 to 2010 Tucker spent nearly every spring and fall on the route. Simblissity Ultralight Designs, a cottage company run by two long-distance hikers, sews ultralight gear. It also sells mapsets, GPS data and guidebook information for its routes, among them the Mogollon Rim Trail, which Tucker helped explore and develop."
checked = "2026-11-17"
[[author.source]]
url = "https://blisterfree.wordpress.com/"
publisher = "blisterfree (Brett Tucker)"
[[author.source]]
url = "https://www.simblissity.net/about.shtml"
publisher = "Simblissity Ultralight Designs"
[[author.source]]
url = "https://www.simblissity.net/get-about.shtml"
publisher = "Simblissity Ultralight Designs"
[[author.source]]
url = "https://www.simblissity.net/"
publisher = "Simblissity Ultralight Designs"
[[author]]
name = "Alan Dixon"
credits = ["Alan Dixon and Don Wilson"]
url = "https://www.adventurealan.com/"
summary = "Alan Dixon is an ultralight backpacking writer and guide who founded the Adventure Alan website and, with Don Wilson, pioneered several high routes."
bio = "Dixon launched AdventureAlan.com in 1999 to share what was known about ultralight backpacking, and co-founded BackpackingLight. Dixon is co-author of Lightweight Backpacking and Camping: A Field Guide to Wilderness Equipment and works as a writer, photographer and hiking guide. Dixon has long focused on high routes and canyoneering. With partner Don Wilson, Dixon pioneered the Wind River High Route (Dixon and Wilson), the Southern Sierra High Route and an extended Escalante Overland Route. Dixon stepped back from running the website in 2023 and remains a gear editor and technical advisor."
checked = "2026-11-17"
[[author.source]]
url = "https://www.adventurealan.com/alan-dixon-bio/"
publisher = "Adventure Alan & Co"
[[author.source]]
url = "https://www.adventurealan.com/about/"
publisher = "Adventure Alan & Co"
[[author]]
name = "Don Wilson"
credits = ["Alan Dixon and Don Wilson"]
summary = "Don Wilson is a high-route hiker who pioneered the Wind River High Route (Dixon and Wilson) and the Southern Sierra High Route with Alan Dixon."
bio = "Wilson's published work is with Alan Dixon. The two are credited as authors of the Wind River High Route guide, which grew from a hike in the late summer of 2013 and was revised in January 2016. In 2014 Wilson and Dixon put together a line that extends the Sierra High Route south, near the Sierra crest, to Mount Whitney and beyond. Dixon's biography also credits the pair with an extended version of the Escalante Overland Route."
checked = "2026-11-17"
[[author.source]]
url = "https://www.adventurealan.com/wind-river-high-route-guide/"
publisher = "Adventure Alan & Co"
[[author.source]]
url = "https://www.adventurealan.com/southern-sierra-high-route-soshr-guide/"
publisher = "Adventure Alan & Co"
[[author.source]]
url = "https://www.adventurealan.com/alan-dixon-bio/"
publisher = "Adventure Alan & Co"
[[author]]
name = "Jake Blood"
credits = ["Jake Blood and Jennifer Pharr Davis"]
summary = "Jake Blood is a North Carolina hiker and trail association officer who co-created the Appalachian High Route with Jennifer Pharr Davis."
bio = "Blood is a local hiker and an officer of the NC High Peaks Trail Association. With Jennifer Pharr Davis, Blood is co-creator of the Appalachian High Route, which unites the Appalachian Trail, the Mountains-to-Sea Trail and the Black Mountain Crest Trail through the Burnsville Connector. Pharr Davis helped Blood come up with the idea while the two studied maps of Yancey County."
checked = "2026-11-17"
[[author.source]]
url = "https://nchighpeaks.org/node/99"
publisher = "North Carolina High Peaks Trail Association"
[[author.source]]
url = "https://jenniferpharrdavis.com/blog/hiking-appalachian-high-route"
publisher = "Jennifer Pharr Davis"
[[author]]
name = "Jennifer Pharr Davis"
credits = ["Jake Blood and Jennifer Pharr Davis"]
url = "https://jenniferpharrdavis.com/about"
summary = "Jennifer Pharr Davis is a long-distance hiker and author who set the Appalachian Trail fastest known time in 2011 and co-created the Appalachian High Route."
bio = "Pharr Davis has covered over 14,000 miles as a hiker, on six continents. She has hiked the Appalachian Trail three times, and in 2011 she set the fastest known time on it, completing the 2,190-mile path in 46 days. She founded the outfitter Blue Ridge Hiking Company and sold it in 2023. She has written guidebooks, family hiking resources and adventure memoirs and has been named a National Geographic Adventurer of the Year. She helped her friend Jake Blood come up with the idea for the Appalachian High Route."
checked = "2026-11-17"
[[author.source]]
url = "https://jenniferpharrdavis.com/about"
publisher = "Jennifer Pharr Davis"
[[author.source]]
url = "https://jenniferpharrdavis.com/blog/hiking-appalachian-high-route"
publisher = "Jennifer Pharr Davis"
[[author]]
name = "Joe Mitchell"
credits = ["Joe Mitchell and Mike Coronella"]
url = "https://www.hayduketrail.org/"
summary = "Joe Mitchell is a creator and co-founder of the Hayduke Trail, an 800-mile backcountry route across the Colorado Plateau."
bio = "Mitchell and Mike Coronella pioneered the Hayduke Trail after concluding that a long trail was possible on the Colorado Plateau. Their guidebook, with a 2005 copyright, was featured in the March 2005 issue of National Geographic Adventure Magazine. The trail is named for George Washington Hayduke III, a character in Edward Abbey's novel The Monkey Wrench Gang. Mitchell remains the contact for the trail's website."
checked = "2026-11-17"
[[author.source]]
url = "https://www.hayduketrail.org/"
publisher = "The Hayduke Trail"
[[author.source]]
url = "https://uofupress.com/books/the-hayduke-trail/"
publisher = "University of Utah Press"
[[author]]
name = "Mike Coronella"
credits = ["Joe Mitchell and Mike Coronella"]
url = "https://www.hayduketrail.org"
summary = "Mike Coronella is a guidebook author who pioneered the Hayduke Trail on the Colorado Plateau with Joe Mitchell."
bio = "Coronella and Joe Mitchell pioneered the Hayduke Trail after concluding that a long trail was possible on the Colorado Plateau. Their guidebook presents the route as a challenging 800-mile backcountry trek and was featured in the March 2005 issue of National Geographic Adventure Magazine. Coronella owns Deep Desert Expeditions in Moab and is an officer with Grand County Search and Rescue."
checked = "2026-11-17"
[[author.source]]
url = "https://uofupress.com/books/the-hayduke-trail/"
publisher = "University of Utah Press"
[[author]]
name = "Ky Harkey"
credits = ["Ky Harkey and Anna Claire Eddington"]
summary = "Ky Harkey is a backpacking guide in the Big Bend region of Texas who created the 100-mile Big Bend 100 route with Anna Claire Eddington."
bio = "In January 2018 Harkey and Eddington set out to hike the Big Bend 100 from end to end, mostly on existing trail, to link Big Bend Ranch State Park with Big Bend National Park. Harkey described the nine-day hike in Texas Parks & Wildlife Magazine in April 2020. Harkey had spent years guiding trips in the region, and both had worked as backpacking instructors."
checked = "2026-11-17"
[[author.source]]
url = "https://thetrek.co/big-bend-100-newest-long-distance-trail-texas/"
publisher = "The Trek"
[[author.source]]
url = "https://tpwmagazine.com/adventure-recreation/the-big-bend-100-a-hike-across-two-west-texas-parks/"
publisher = "Texas Parks & Wildlife Magazine"
[[author]]
name = "Anna Claire Eddington"
credits = ["Ky Harkey and Anna Claire Eddington"]
summary = "Anna Claire Eddington is a backpacking instructor who created the 100-mile Big Bend 100 route in West Texas with Ky Harkey."
bio = "Eddington and Ky Harkey set out in January 2018 to hike the Big Bend 100 from end to end, a route that links Big Bend Ranch State Park with Big Bend National Park. Both had worked as backpacking instructors. Eddington later went back with a group from Gossamer Gear to complete the first half of the route again, and advises desert hikers not to assume there will be water along the way."
checked = "2026-11-17"
[[author.source]]
url = "https://thetrek.co/big-bend-100-newest-long-distance-trail-texas/"
publisher = "The Trek"
[[author.source]]
url = "https://tpwmagazine.com/adventure-recreation/the-big-bend-100-a-hike-across-two-west-texas-parks/"
publisher = "Texas Parks & Wildlife Magazine"
[[author]]
name = "Luc Mehl"
credits = ["Luc Mehl and Sarah Histand"]
url = "https://thingstolucat.com/"
summary = "Luc Mehl is an Alaska wilderness traveler and instructor who wrote The Packraft Handbook and traversed the Brooks Range with Sarah Histand."
bio = "Mehl has traveled 10,000 miles of Alaska by packraft, ski, foot, bike and ice skate. The Brooks Range Traverse crosses the range from Kivalina to Kaktovik in three parts, and Mehl made the second leg through the Arctic National Wildlife Refuge in June 2017. Mehl wrote The Packraft Handbook, winner of the 2021 National Outdoor Book Award in Outdoor Adventure Guides. Mehl is an outdoor skills instructor, a certified instructor for the Swiftwater Safety Institute and a member of the education committee of the American Packraft Association."
checked = "2026-11-17"
[[author.source]]
url = "https://thingstolucat.com/packrafthandbook/"
publisher = "Luc Mehl (Things To Luc At)"
[[author.source]]
url = "https://thingstolucat.com/brooks-range-traverse/"
publisher = "Luc Mehl (Things To Luc At)"
[[author.source]]
url = "https://thingstolucat.com/arctic-refuge-traverse/"
publisher = "Luc Mehl (Things To Luc At)"
[[author]]
name = "Sarah Histand"
credits = ["Luc Mehl and Sarah Histand"]
url = "https://www.mindandmountain.co/"
summary = "Sarah Histand is an Alaska adventure fitness trainer who hiked and floated the Arctic National Wildlife Refuge with Luc Mehl on the Brooks Range Traverse."
bio = "In June 2017 Histand and Luc Mehl hiked and floated 275 miles through the Arctic National Wildlife Refuge in three weeks. That trip was the second leg of the Brooks Range Traverse, which crosses the range from Kivalina to Kaktovik in three parts. Histand also founded Mind & Mountain, an online training program that offers workouts to build the strength needed for outdoor recreation."
checked = "2026-11-17"
[[author.source]]
url = "https://thingstolucat.com/arctic-refuge-traverse/"
publisher = "Luc Mehl (Things To Luc At)"
[[author.source]]
url = "https://thingstolucat.com/brooks-range-traverse/"
publisher = "Luc Mehl (Things To Luc At)"
[[author.source]]
url = "https://www.mindandmountain.co/"
publisher = "Mind & Mountain"
[[author]]
name = "Liz Thomas"
@@ -79,6 +272,18 @@ credits = [
"Liz Thomas",
"Sea to Sea Trail Foundation (folded); guide by Liz Thomas",
]
url = "https://www.eathomas.com/"
summary = "Liz Thomas is a long-distance hiker and author who broke the women's self-supported speed record on the Appalachian Trail and wrote Long Trails."
bio = "Thomas has completed the Triple Crown of Hiking and has hiked more than 20,000 miles on over 20 long trails. Thomas broke the women's self-supported speed record on the 2,181-mile Appalachian Trail and made first-known traverses of the Chinook Trail in the Columbia River Gorge and of the Wasatch Range in Utah. Thomas wrote Long Trails: Mastering the Art of the Thru-hike, which won the National Outdoor Book Award for Best Instructional Book. Thomas is also editor in chief of Treeline Review, an outdoor gear magazine."
checked = "2026-11-17"
[[author.source]]
url = "https://www.eathomas.com/about"
publisher = "Liz Thomas Hiking"
[[author.source]]
url = "https://www.eathomas.com/"
publisher = "Liz Thomas Hiking"
[[author]]
name = "Sea to Sea Trail Foundation"
@@ -88,83 +293,359 @@ kind = "organisation"
[[author]]
name = "Aria Zoner"
credits = ["Aria Zoner"]
url = "https://outsideways.com/routes/us/hot-springs-trail/"
summary = "Aria Zoner is a thru-hiker and guidebook author who wrote The Hot Springs Trail Official Guidebook and The Nevada Trail Official Guidebook."
bio = "The Hot Springs Trail is a 2,421-mile journey to 100 wild or resort hot spring areas, running from Santa Barbara, California, to Idaho's Canadian border. Zoner's 2016 journal records a total time of 110 days to complete it. The route has also been published as a template for an official Hot Springs National Scenic Trail. Besides the Hot Springs Trail guide, Zoner wrote a guidebook for the Nevada Trail."
checked = "2026-11-17"
[[author.source]]
url = "https://outsideways.com/routes/us/hot-springs-trail/"
publisher = "Outsideways"
[[author]]
name = "Brian Lucido"
credits = ["Brian Lucido"]
url = "https://www.brianlucido.com/"
summary = "Brian Lucido set the unsupported fastest known time on the Sierra High Route in August 2015, in 6 days, 13 hours and 35 minutes."
checked = "2026-11-17"
[[author.source]]
url = "https://fastestknowntime.com/route/sierra-high-route-ca"
publisher = "Fastest Known Time"
[[author]]
name = "Cam Honan"
credits = ["Cam Honan"]
url = "https://thehikinglife.com/about/"
summary = "Cam Honan is a long-distance hiker and author who completed the 12 Long Walks and has hiked more than 77,000 miles in 68 countries."
bio = "As of 2026, Honan has hiked more than 77,000 miles in 68 countries and six continents. The best known of those hikes is the 12 Long Walks, a dozen consecutive long-distance hikes between July 2011 and December 2012 that totalled more than 14,300 miles through 29 US states and four Canadian provinces. Within that trip Honan completed a calendar year Triple Crown of the Pacific Crest, Appalachian and Continental Divide Trails in 236 days, and covered 10,244 miles in the calendar year. Honan has authored and co-edited seven books, among them Wanderlust USA, Wanderlust Himalaya and Hiking & Backpacking for Dummies. Honan also runs The Hiking Life, a website of trail guides, gear reviews and backpacking tips covering more than 200 hikes."
checked = "2026-11-17"
[[author.source]]
url = "https://thehikinglife.com/about/"
publisher = "The Hiking Life"
[[author.source]]
url = "https://thehikinglife.com/"
publisher = "The Hiking Life"
[[author]]
name = "Dan Stenziano"
credits = ["Dan Stenziano"]
url = "https://danstenziano.com/"
summary = "Dan Stenziano is a backpacking guide who publishes the Eastern Sierra High Route Guide and has thru-hiked the Pacific Crest and Continental Divide Trails."
bio = "Stenziano's first trip to the Sierra was a thru-hike of the John Muir Trail in 2016. Stenziano went on to complete multi-month thru-hikes of the Pacific Crest Trail and the Continental Divide Trail. In 2023 Stenziano began working as a backpacking guide in Yosemite, and now guides for Sierra Mountain Center. Away from guiding, Stenziano comes up with off-trail backpacking routes and explores new parts of the Sierra."
checked = "2026-11-17"
[[author.source]]
url = "https://danstenziano.com/"
publisher = "Dan Stenziano"
[[author.source]]
url = "https://sierramountaincenter.com/meet-the-smc-staff/"
publisher = "Sierra Mountain Center"
[[author]]
name = "Eric Poulin"
credits = ["Eric Poulin"]
url = "https://seekinglost.com/"
summary = "Eric Poulin is a thru-hiker and filmmaker who created the Basin and Range Trail and the Mojave-Sonoran Trail and films long hikes for YouTube as Seeking Lost."
bio = "Poulin thru-hiked the Continental Divide Trail, about 3,000 miles from Mexico to Canada, and filmed the journey for YouTube. Since then Poulin has worked out new routes and hiked them. The Basin and Range Trail, in 2020, runs more than 1,000 miles across Nevada. The Mojave-Sonoran Trail, in 2021, is a 625-mile off-trail route from southern Nevada to southern Arizona. In 2022 Poulin thru-hiked the Oregon Desert Trail. Seeking Lost is Poulin's site and YouTube channel of thru-hiking and backpacking trip films and hiking gear videos."
checked = "2026-11-17"
[[author.source]]
url = "https://voyagedenver.com/interview/check-out-eric-poulins-story/"
publisher = "VoyageDenver"
[[author.source]]
url = "https://www.youtube.com/@SeekingLost"
publisher = "YouTube (the Seeking Lost channel)"
[[author]]
name = "Erik Schlimmer"
credits = ["Erik Schlimmer"]
url = "https://erikschlimmer.com/"
summary = "Erik Schlimmer is an Adirondack author who created the 242.7-mile Trans Adirondack Route in 2010 and wrote its guidebook, Blue Line to Blue Line."
bio = "Schlimmer is the first name on the completers list of the Trans Adirondack Route in 2010 and completed a second thru-hike in 2018. The route is 242.7 miles through Adirondack Park, with 199.3 miles of it on trails. Blue Line to Blue Line, the first guide to the route, appeared in 2013, and a second edition was published in 2025. Schlimmer has also written books on the place names and history of the Adirondacks, including History Inside the Blue Line."
checked = "2026-11-17"
[[author.source]]
url = "https://erikschlimmer.com/tar-1"
publisher = "Erik Schlimmer"
[[author.source]]
url = "https://erikschlimmer.com/books-sale-"
publisher = "Erik Schlimmer"
[[author]]
name = "Jamal Green"
credits = ["Jamal Green"]
url = "http://www.acrossutah.com/wordpress/the_route/"
summary = "Jamal Green is a long-distance hiker who has spent two decades putting together hiking routes across Utah, published at AcrossUtah.com."
bio = "For the past two decades Green has been putting together long-distance hiking routes throughout Utah. AcrossUtah.com and an accompanying video channel are a source of logistical and cartographical information for a hike across southern Utah. The suggested route across Utah on that site was the framework for a 2017 hike by the authors of Doing Miles, who also thanked Green for answering their planning questions."
checked = "2026-11-17"
[[author.source]]
url = "https://thehikinglife.com/2025/07/southern-utah-traverse-an-800-mile-hike-from-nevada-to-colorado/"
publisher = "The Hiking Life"
[[author.source]]
url = "https://doingmiles.com/2017-04-across-utah/"
publisher = "Doing Miles"
[[author]]
name = "Kevin Silvernale"
credits = ["Kevin Silvernale"]
url = "https://www.northerncoloradotrail.org/"
summary = "Kevin Silvernale designed the Northern Colorado Trail and in 2024 became the first person to complete it."
bio = "Silvernale finished thru-hiking the Pacific Crest Trail in 2016 and went on to hike the Appalachian Trail in 2018, the Continental Divide Trail in 2021 and the Colorado Trail in 2022. In 2023 Silvernale began plotting a long-distance path, linking existing trails and roads, from Estes Park to Glenwood Springs. The Northern Colorado Trail runs between the Dunraven and Transfer trailheads for roughly 300 miles, and Silvernale first completed it in 2024."
checked = "2026-11-17"
[[author.source]]
url = "https://explorersweb.com/new-thru-hike-northern-colorado-trail-debuts-this-season/"
publisher = "ExplorersWeb"
[[author.source]]
url = "https://5280.com/ways-to-hike-the-new-northern-colorado-trail/"
publisher = "5280"
[[author]]
name = "Michael Kauffmann"
credits = ["Michael Kauffmann"]
url = "https://www.michaelkauffmann.net/"
summary = "Michael Kauffmann is an ecologist and author who first walked the route that became the Bigfoot Trail in 2009 and wrote Conifer Country."
bio = "Kauffmann presents as an educator, author and ecologist. After hiking the Continental Divide Trail, Kauffmann discussed the lack of connectivity between wilderness areas in the Klamath Mountains with the botanist John O. Sawyer. Kauffmann first walked the route that became the Bigfoot Trail in 2009. Kauffmann wrote Conifer Country, a natural history and hiking guide to the region, and in 2015 launched a Kickstarter campaign to establish the Bigfoot Trail Alliance as a nonprofit organization."
checked = "2026-11-17"
[[author.source]]
url = "https://www.michaelkauffmann.net/2015/01/creating-bigfoot-trail-alliance/"
publisher = "Michael Kauffmann"
[[author]]
name = "Mike White"
credits = ["Mike White"]
summary = "Mike White is a hiking guidebook author whose guide presents 122 hikes in Sequoia and Kings Canyon National Parks and the southern High Sierra."
checked = "2026-11-17"
[[author.source]]
url = "https://shop.adventurewithkeen.com/product/sequoia-and-kings-canyon-national-parks/"
publisher = "Wilderness Press (AdventureKEEN)"
[[author]]
name = "Pam Neely"
credits = ["Pam Neely"]
url = "https://santafetotaos.org"
summary = "Pam Neely scouted and refined the Santa Fe to Taos Thru-Hike, a 132-mile route in northern New Mexico first completed as a thru-hike in 2018."
bio = "The route of the Santa Fe to Taos Thru-Hike was more than ten years in the making and was scouted and refined by Neely beginning around 2014. It runs 132 miles through four counties, Santa Fe, Rio Arriba, Mora and Taos, and is broken into six sections of about 20 miles each. A guidebook to the route is on sale in Santa Fe."
checked = "2026-11-17"
[[author.source]]
url = "https://www.santafe.org/listing/the-santa-fe-to-taos-thru-hike/5127/amp/"
publisher = "Tourism Santa Fe"
[[author]]
name = "Philip Stone"
credits = ["Philip Stone"]
url = "https://www.wildisle.ca/backbone/index.html"
summary = "Philip Stone is credited with the Hiking Guide to the Vancouver Island Backbone, a route of about 200 miles, and wrote Island Alpine Climbing."
checked = "2026-11-17"
[[author.source]]
url = "https://www.wildisle.ca/backbone/index.html"
publisher = "Wild Isle (Philip Stone)"
[[author.source]]
url = "https://www.wildisle.ca/islandalpineclimbing/index.html?campaign=WT-156218"
publisher = "Wild Isle (Philip Stone)"
[[author]]
name = "Ron Strickland"
credits = ["Ron Strickland"]
summary = "Ron Strickland is the founder of the Pacific Northwest Trail and of the Pacific Northwest Trail Association, and the author of Pathfinder."
bio = "Strickland began to envision the Pacific Northwest Trail after reading Harvey Manning's 1970 book, and spent years poring over maps, hiking segments and recruiting volunteers to piece the route together. A preliminary route was identified by 1974. In 1977 Strickland founded the Pacific Northwest Trail Association. The trail stretches 1,200 miles from Glacier National Park in Montana to Olympic National Park in Washington. Strickland's books include The Pacific Northwest Trail Guide, Shanks Mare: A Compendium of Remarkable Walks and Pathfinder, published in 2011."
checked = "2026-11-17"
[[author.source]]
url = "https://www.pnt.org/pnta/about-us/history/"
publisher = "Pacific Northwest Trail Association"
[[author.source]]
url = "https://osupress.oregonstate.edu/author/ron-strickland"
publisher = "Oregon State University Press"
[[author]]
name = "Steve Roper"
credits = ["Steve Roper"]
summary = "Steve Roper is a climbing writer who first published the Sierra High Route in 1982, in the guide Timberline Country: Sierra High Route."
bio = "The idea for the Sierra High Route came to Roper around 1980 after a day of cross-country walking. The 1982 guide Timberline Country: Sierra High Route was the first publication of the route, an off-trail line along the narrow band bordering the 10,000 foot level in the High Sierra. Roper wrote A Climber's Guide to Yosemite Valley in 1964 and has published more than half a dozen guidebooks, among them Fifty Classic Climbs of North America. With Allen Steck, Roper founded and edited the climbing journal Ascent."
checked = "2026-11-17"
[[author.source]]
url = "https://adventuresportsjournal.com/sierra-high-route/"
publisher = "Adventure Sports Journal"
[[author]]
name = "Thomas Winnett"
credits = ["Thomas Winnett"]
summary = "Thomas Winnett founded the hiking guide publisher Wilderness Press in 1967 and is credited with the Tahoe-Yosemite Trail."
bio = "Winnett founded Wilderness Press in 1967 with the publication of Sierra North. Over the next 35 years the press built a list of hiking guides covering California, Alaska, Hawaii and other regions. Winnett sold the press to Keen Communications in April 2008 and died in 2011. The Tahoe-Yosemite Trail is credited to Winnett."
checked = "2026-11-17"
[[author.source]]
url = "https://www.publishersweekly.com/pw/by-topic/industry-news/people/article/46923-wilderness-press-founder-thomas-winnett-dies-at-89.html"
publisher = "Publishers Weekly"
[[author]]
name = "Kevin \"LarryBoy\" DeVries"
credits = ['Kevin "LarryBoy" DeVries']
credits = ["Kevin \"LarryBoy\" DeVries"]
url = "https://www.lbhikes.com/"
summary = "Kevin \"LarryBoy\" DeVries is a long-distance hiker who created the Deseret Hiking Route, which links the Arizona Trail and the Idaho Centennial Trail."
bio = "DeVries hikes as LarryBoy and writes the LB Hikes site. The About page lists thru-hikes of the Appalachian Trail in 2013, the Continental Divide Trail in 2018 and the Pacific Crest Trail in 2023. DeVries has a specific interest in route creation and planning and created the Deseret Hiking Route. The route joins the Arizona Trail to the Idaho Centennial Trail, so that hikers can walk from Mexico to Canada through Arizona, Utah and Idaho."
checked = "2026-11-17"
[[author.source]]
url = "https://www.lbhikes.com/p/about.html"
publisher = "LB Hikes"
[[author]]
name = "Ryan \"Dirtmonger\" Sylva"
credits = ['Ryan "Dirtmonger" Sylva']
credits = ["Ryan \"Dirtmonger\" Sylva"]
url = "https://www.freedirtmonger.com/"
summary = "Ryan \"Dirtmonger\" Sylva is a long-distance hiker who developed and named the Great Basin Trail, a route contained in Nevada."
bio = "Sylva writes the dirtmonger blog, which is dedicated to endurance, adventure and wandering and carries guides to a long list of routes. Sylva developed and named the Great Basin Trail in late 2019, a route contained entirely in Nevada. The blog also describes the Vagabond Loop, which Sylva started and which joins the Arizona Trail, the Hayduke Trail, the Grand Enchantment Trail and a Moab to Albuquerque connection."
checked = "2026-11-17"
[[author.source]]
url = "https://www.freedirtmonger.com/"
publisher = "dirtmonger"
[[author.source]]
url = "https://www.freedirtmonger.com/p/vagabond-loop-four-corners-connection-1.html"
publisher = "dirtmonger"
[[author.source]]
url = "https://www.gossamergear.com/blogs/our-blog/great-basin-trail"
publisher = "Gossamer Gear"
[[author]]
name = "Donovan \"Iceman\" Rice"
credits = ['Donovan "Iceman" Rice']
credits = ["Donovan \"Iceman\" Rice"]
url = "https://greatcoloradoroute.com/"
summary = "Donovan \"Iceman\" Rice is a Colorado thru-hiker who envisioned the 2,000-mile Great Colorado Route and leads the project."
bio = "Rice, a Colorado native, envisioned the Great Colorado Route and currently spearheads it. The route is a 2,000-mile hybrid of a high route and a traditional thru-hike, with sustained route finding, off-trail travel and scrambling. Rice has completed all of the state's 14ers and finished the Continental Divide Trail, in addition to other major thru-hikes."
checked = "2026-11-17"
[[author.source]]
url = "https://greatcoloradoroute.com/about"
publisher = "Great Colorado Route"
[[author.source]]
url = "https://greatcoloradoroute.com/"
publisher = "Great Colorado Route"
[[author]]
name = "M. J. Eberhart"
credits = ["M. J. Eberhart (trail name Nimblewill Nomad)"]
url = "https://nimblewillnomad.com/books/"
summary = "M. J. Eberhart, who hikes as Nimblewill Nomad, walked from the Florida Keys to Quebec in 1998 and wrote Ten Million Steps about the Eastern Continental Trail."
bio = "In January 1998 Eberhart set off on a foot journey of 4,400 miles from the Florida Keys to the far north of Quebec. The book Ten Million Steps tells the story of the walk along the Eastern Continental Trail. In 2000 and 2001 Eberhart made a 347 day journey of over 5,000 miles along the entire Appalachian Mountain Range, the subject of Where Less the Path Is Worn. A 2002 walk from Cape Hatteras to Point Loma, California, covered over 3,000 miles."
checked = "2026-11-17"
[[author.source]]
url = "https://nimblewillnomad.com/books/"
publisher = "M. J. Eberhart (Nimblewill Nomad)"
[[author.source]]
url = "https://nimblewillnomad.com/about/"
publisher = "M. J. Eberhart (Nimblewill Nomad)"
[[author]]
name = "Paul Mags"
credits = ["Paul Mags (PMags.com)"]
url = "https://pmags.com/"
summary = "Paul Mags is an outdoor writer and Triple Crown hiker who publishes PMags.com and created the Grand-Moab Route."
bio = "Mags writes PMags.com and has hiked the Triple Crown of hiking, made up of the Appalachian Trail, the Pacific Crest Trail and the Continental Divide Trail. Mags has guided, co-hosted the podcast The Trail Show and served as a volunteer board member for the Continental Divide Trail Coalition. Rock Ridge Press published a first print book by Mags in the fall of 2019. The Grand-Moab Route is about 140 miles from Grand Junction, Colorado, to Moab, Utah, and Mags hiked it in 2022."
checked = "2026-11-17"
[[author.source]]
url = "https://pmags.com/about-me"
publisher = "Paul Mags (PMags.com)"
[[author.source]]
url = "https://pmags.com/the-grand-moab-route"
publisher = "Paul Mags (PMags.com)"
[[author]]
name = "Lauren Lake"
credits = ["Lauren Lake (PacificCoastalTrail blog)"]
url = "https://pacificcoastaltrail.wordpress.com/"
summary = "Lauren Lake writes the PacificCoastalTrail blog about section hikes of the entire west coast, started in 2021 and completed in 2026."
checked = "2026-11-17"
[[author.source]]
url = "https://pacificcoastaltrail.wordpress.com/"
publisher = "PacificCoastalTrail blog"
[[author]]
name = "Wilderness Mindset"
credits = ["Wilderness Mindset"]
kind = "people"
url = "https://wildernessmindset.com/"
summary = "Wilderness Mindset is the name under which Alex Maier and Amy L. Robin hike, film and publish backpacking routes and outdoor documentaries."
bio = "Wilderness Mindset began when Amy L. Robin and Alex Maier decided to combine their passions for the outdoors and photography. Maier thru-hikes and films long hikes, and Maier's stated purpose is to explore the wilderness and share what turns up in videos and photos. Robin came to backpacking through hunting, bushcraft and navigation. Their documentaries include films on the Continental Divide Trail, the Pacific Northwest Trail, the Hayduke Trail and the North Country Trail, and on speed records on the Missouri and Mississippi Rivers. The site also publishes backpacking routes, among them the Beartooth High Route, and sells map packs, books and prints. The stated goal is to inspire people to find their own meaningful experiences in nature."
checked = "2026-11-17"
[[author.source]]
url = "https://wildernessmindset.com/about/"
publisher = "Wilderness Mindset"
[[author.source]]
url = "https://wildernessmindset.com/"
publisher = "Wilderness Mindset"
[[author]]
name = "John and Monica Chapman"
credits = ["John and Monica Chapman"]
kind = "people"
url = "https://www.john.chapman.name/pub-sierra.html"
summary = "John and Monica Chapman are credited with the Sierra Grand Traverse, a 200-mile traverse of the Sierra Nevada, and its guidebook from The Mountaineers."
bio = "The guidebook to the Sierra Grand Traverse, published by The Mountaineers, was a finalist in the Guidebooks category of the 2023 Banff Mountain Book Competition. John Chapman's walking guides began with South West Tasmania in 1978. Bushwalking in Australia, a joint effort of John and Monica Chapman, was first published in 1986 and went through three editions with Lonely Planet before a fourth was self-published in 2003. John Chapman has since written guides to walks in Victoria, Sydney and Tasmania."
checked = "2026-11-17"
[[author.source]]
url = "https://www.john.chapman.name/pub-sierra.html"
publisher = "John Chapman"
[[author.source]]
url = "https://www.john.chapman.name/self.html"
publisher = "John Chapman"
[[author]]
name = "Amy and James (Doing Miles)"
credits = ["Amy and James (Doing Miles)"]
kind = "people"
url = "https://doingmiles.com/"
summary = "Amy and James (Doing Miles) are hikers who designed and published the Big SEKI Loop, about 155 miles in Sequoia and Kings Canyon National Parks."
bio = "Amy and James began thru-hiking mid-distance trails of 250 to 800 miles in 2002 and have completed about 35 such trips in the United States and overseas. They have also taken many dozens of wilderness backpacking trips of seven to eleven days, mostly in southern Utah and the southern Sierra Nevada. They completed the design of the Big SEKI Loop in 2013 and first published it on Backpackinglight.com in February of that year."
checked = "2026-11-17"
[[author.source]]
url = "https://doingmiles.com/about-us/"
publisher = "Doing Miles"
[[author.source]]
url = "https://doingmiles.com/route-big-seki-loop/"
publisher = "Doing Miles"
[[author]]
name = "Steve Myers"
credits = ["Steve Myers (Great Plains Trail Alliance)"]
kind = "person"
url = "https://www.greatplainstrail.org/"
summary = "Steve Myers (Great Plains Trail Alliance) is the founder and Director of Great Plains Trail, a planned long-distance trail through the Great Plains."
bio = "The Great Plains Trail Alliance was formed from an inspiration that began in 1991, when Myers took a trip from Minnesota to Wyoming and wanted a fuller way to experience the open spaces west of the Missouri River. The Alliance exists to establish, develop, preserve and promote a long-distance, public, non-motorized trail running north and south through the Great Plains region for recreation, conservation, education and inspiration. Myers remains founder and Director of Great Plains Trail."
checked = "2026-11-17"
[[author.source]]
url = "https://www.greatplainstrail.org/about-us/"
publisher = "Great Plains Trail Alliance"
+14 -3
View File
@@ -372,12 +372,23 @@ The same file also says which of the site's lists the home page offers under "St
## `authors.toml`: who the route credits name
A route's author is the free text of its `route.creator`. One file at the top level, `authors.toml`, names the people and organisations those credits name, with every exact credit that names each. The site gives every route author a page of their own (`/authors/<name>/`), however many routes they have, and an author with no entry stands alone as written. An entry is needed where a person is credited in more than one form, where one credit names two or more people in full (the credit is listed under each, so the route is on each page and each page says who else is credited), and where the page should be marked up as a person. A nickname, a company or an association is left without an entry, and is not marked up as a person.
A route's author is the free text of its `route.creator`. One file at the top level, `authors.toml`, names the people and organisations those credits name, with every exact credit that names each. The site gives every route author a page of their own (`/authors/<name>/`), however many routes they have, and an author with no entry stands alone as written. An entry is needed where a person is credited in more than one form, where one credit names two or more people in full (the credit is listed under each, so the route is on each page and that route's row names who else is credited), where the page should be marked up as a person, and where a person (or a pair of people) is to carry a summary and a biography. A company or an association is left without an entry, or given one of kind `organisation`, and is not marked up as a person.
`/authors/` opens with a block for each author who has at least `PROMINENT_MIN` routes (3, set in `web/olt/authors.py`), and lists the others below, alphabetically. An author whose routes reach it moves up with no other change.
**The words about an author are for people only.** A summary, a biography, an "About" section and a leading place on `/authors/` are for human authors, never for an association, an agency, a government or any other organisation: their own sites are a link away from each trail's page. An organisation's page lists its routes and nothing more. An entry describes a person, not a route count: a person with no route on the site may have an entry, though the site builds pages only for authors of routes today.
An author's page opens with the name, the `summary` as its one sentence (or, with none, a plain sentence of how many routes and how long), and one line of the route count, their range in miles and the author's own site. The routes follow as rows beside the map; a route credited to others too says so in its own row ("With Ryan Jordan"). After the rows, under "About" and the name, comes the `bio`, with the sources and the date checked in small print.
`/authors/` opens with each person who has at least `PROMINENT_MIN` routes (3, set in `web/olt/authors.py`), with their summary and their routes as rows, most routes first, and lists the others below, alphabetically, each with their summary where there is one; organisations come last. Only people lead: an organisation, or a credit with no entry, never does, however many routes it has. A person whose routes reach the number moves up with no other change.
| Field | Type | Meaning | Example |
| --- | --- | --- | --- |
| `name` | string | The name as the credits write it. Unique. | `"Andrew Skurka"` |
| `credits` | array of strings | One or more exact `route.creator` values that credit this author. Each must be the `route.creator` of at least one route and contain the name. The same credit may be listed under each author it names. | `["Andrew Skurka", "Andrew Skurka and Ryan Jordan"]` |
| `kind` | string, optional | `person` (the default) or `organisation`. Only a `person` page carries a schema.org `Person`. | `"organisation"` |
| `kind` | string, optional | `person` (the default: one named person), `people` (human, but not one full name: a pair credited together, such as `"John and Monica Chapman"`, or a pair known by one name, such as `"Wilderness Mindset"`; `name` is then the credit as written), or `organisation`. Only a `person` page carries a schema.org `Person`. | `"people"` |
| `url` | string, optional | The author's own site or page, `http(s)`. Shown in the head of the author's page, and the `url` and `sameAs` of a `Person`. | `"https://andrewskurka.com/"` |
| `summary` | string, optional; people only | One sentence on one line, at most 160 characters, ending with a full stop, that says who this is. Begins with the name. No dash as punctuation. The page's sentence under the name, and its description for search engines. | `"Andrew Skurka is ..."` |
| `bio` | string, optional; people only | One paragraph of plain text on one line, 40 to 130 words, ending with a full stop. No dash as punctuation. Shown after the rows, under "About" and the name. Wording is ours: nothing is copied from a source. | |
| `checked` | date, with `summary` or `bio` | `YYYY-MM-DD`: when the summary and bio were last checked against their sources. Not in the future. Required with either; refused without. | `2026-11-17` |
| `[[author.source]]` | tables, with `summary` or `bio` | The pages the summary and bio were read on, each with `url` (`http(s)`) and `publisher` (who publishes the page). At least one is required with either; refused without; no page twice. | `url = "https://andrewskurka.com/about/"`, `publisher = "Andrew Skurka"` |
On an `organisation`, `summary`, `bio`, `checked` and `[[author.source]]` are refused; it may carry `url`. An unknown field is refused anywhere in an entry or a source. `tools/validate.py` runs these checks (`tools/check_datafiles.py`).
+15 -6
View File
@@ -8,12 +8,12 @@ length_km = 143
length_note = "89 mi planned, per the trip report; the hike recorded was 67 mi (108 km)"
kind = "route"
tier = "regional"
designation = "Person-defined route (the author of the SeekingLost blog, 2017); no agency or association"
designation = "Person-defined route (Eric Poulin, 2017); no agency or association"
wave = 1
[source]
status = "none"
publisher = "the author of the SeekingLost blog (publishes the route)"
publisher = "Eric Poulin (publishes the route)"
publisher_url = "https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/"
url = "https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/"
format = "No line included"
@@ -36,17 +36,17 @@ note = "No route relation found when searched on 2026-11-10. Five relations matc
[shield]
status = "no-logo-exists"
logo_source = "https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/"
contact = "the author of the SeekingLost blog"
contact = "Eric Poulin"
note = "Looked at the trip report page and the SeekingLost home page. They show photos and the blog's own site icon only; no emblem for the route."
logo_file = ""
logo_owner = "the author of the SeekingLost blog"
logo_owner = "Eric Poulin"
[verification]
verified = false
note = "No line to measure."
[route]
creator = "the author of the SeekingLost blog"
creator = "Eric Poulin"
year = 2017
line_policy = "open"
creator_words = "Download GPX file of this hike"
@@ -55,7 +55,7 @@ note = "Planned as 89 miles with over 50 miles off-trail from Tin Cup Trailhead;
[[guide]]
title = "Sawtooth Wilderness High Route trip report and GPX"
author = "the author of the SeekingLost blog"
author = "Eric Poulin"
access = "free"
url = "https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/"
format = "web trip report with a GPX download and a CalTopo map"
@@ -101,3 +101,12 @@ basis = "The pages named in the logo note were searched, and none shows an emble
basis_url = "https://seekinglost.com/sawtooth-wilderness-high-route-8-day-solo-hike-aug-2017/"
asked_by = "the dataset's own check"
outcome = "applied"
[[history]]
date = "2026-11-17"
change = "The route's creator is now named as Eric Poulin, where the record had called him the author of the SeekingLost blog."
fields = ["route.creator", "designation", "source.publisher", "guide.author", "shield.contact", "shield.logo_owner"]
basis = "The author of Seeking Lost names himself as Eric Poulin in the description of his own Seeking Lost channel on YouTube and in a published interview, and this dataset already credits him by name for his other two routes on the same site, the Basin and Range Trail and the Mojave-Sonoran Trail."
basis_url = "https://voyagedenver.com/interview/check-out-eric-poulins-story/"
asked_by = "the dataset's own check"
outcome = "applied"
+87 -4
View File
@@ -3,11 +3,13 @@
glossary.toml [[term]] id, term, definition, optional source_url, see
collections.toml [[collection]] id, name, members, definition, source_url, source_publisher
[[list]] key, home (the lists the home page shows, and their order)
authors.toml [[author]] name, credits, optional kind
authors.toml [[author]] name, credits, optional kind, url, summary, bio, checked,
[[author.source]] (url, publisher)
Each function appends one message per problem to `errors`. Used by tools/validate.py, which passes
the records it has read. Python 3 standard library only. Fields are in docs/schema.md.
"""
import datetime
import os
import re
import sys
@@ -15,6 +17,17 @@ import tomllib
ID_RE = re.compile(r"[a-z0-9]+(-[a-z0-9]+)*")
DASH_RE = re.compile(r"[–—]| - ")
DATE_RE = re.compile(r"\d{4}-\d{2}-\d{2}")
# authors.toml: what an [[author]] entry may hold, and the limits on its words.
# person (the default): one named person. people: human, but not one full name (a pair credited
# together, or a person known by a blog's name). organisation: credited, but given nothing more.
AUTHOR_KINDS = ("person", "people", "organisation")
AUTHOR_ABOUT = ("summary", "bio", "checked", "source") # for people only; refused on an organisation
AUTHOR_KEYS = {"name", "credits", "kind", "url", "summary", "bio", "checked", "source"}
AUTHOR_SOURCE_KEYS = {"url", "publisher"}
SUMMARY_MAX = 160 # characters
BIO_WORDS = (40, 130)
def built_in_list_keys():
@@ -179,9 +192,9 @@ def check_author_entries(entries, routes, errors, where="authors.toml"):
errors.append(f"{where}: entry {i} must be a table ([[author]])")
continue
who = f"{where}: {a.get('name') or 'entry ' + str(i)}"
check_unknown(a, {"name", "credits", "kind"}, who, errors)
if a.get("kind", "person") not in ("person", "organisation"):
errors.append(f"{who} kind must be person or organisation")
check_unknown(a, AUTHOR_KEYS, who, errors)
if a.get("kind", "person") not in AUTHOR_KINDS:
errors.append(f"{who} kind must be one of {', '.join(AUTHOR_KINDS)}")
name = _text(a, "name", who, errors)
if name in seen_names:
errors.append(f"{who} duplicate name")
@@ -198,6 +211,76 @@ def check_author_entries(entries, routes, errors, where="authors.toml"):
seen_credits[c].append(name)
if name and name.lower() not in c.lower():
errors.append(f"{who} credit {c!r} does not contain the name")
if a.get("kind") == "organisation":
for k in AUTHOR_ABOUT:
if k in a:
errors.append(f"{who} is an organisation: {k} is for people only")
_url(a, "url", who, errors)
else:
check_author_about(a, name, who, errors)
def _date(value, where, field, errors):
"""A date written YYYY-MM-DD (a string, or a TOML date), real and not in the future."""
text = value.isoformat() if isinstance(value, datetime.date) and not isinstance(value, datetime.datetime) else value
if not isinstance(text, str) or not DATE_RE.fullmatch(text):
errors.append(f"{where} {field} must be a date (YYYY-MM-DD)")
return
try:
day = datetime.date.fromisoformat(text)
except ValueError:
errors.append(f"{where} {field} {text!r} is not a real date")
return
if day > datetime.date.today():
errors.append(f"{where} {field} {text} is in the future")
def check_author_about(a, name, who, errors):
"""The words about an author: url, summary, bio, checked and [[author.source]]."""
_url(a, "url", who, errors)
summary = _text(a, "summary", who, errors, required=False)
bio = _text(a, "bio", who, errors, required=False)
if summary:
if len(summary) > SUMMARY_MAX:
errors.append(f"{who} summary is {len(summary)} characters; at most {SUMMARY_MAX}")
if name and not summary.lower().startswith(name.lower()):
errors.append(f"{who} summary must begin with the name {name!r}")
if "\n" in summary or not summary.endswith("."):
errors.append(f"{who} summary must be one sentence on one line, ending with a full stop")
if DASH_RE.search(summary):
errors.append(f"{who} summary uses a dash as punctuation")
if bio:
n = len(bio.split())
if not BIO_WORDS[0] <= n <= BIO_WORDS[1]:
errors.append(f"{who} bio is {n} words; it must be {BIO_WORDS[0]} to {BIO_WORDS[1]}")
if "\n" in bio.strip():
errors.append(f"{who} bio must be one paragraph on one line")
if not bio.rstrip().endswith((".", "?", "!")):
errors.append(f"{who} bio must end with a full stop")
if DASH_RE.search(bio):
errors.append(f"{who} bio uses a dash as punctuation")
about = bool(summary or bio)
if "checked" in a:
_date(a["checked"], who, "checked", errors)
elif about:
errors.append(f"{who} has a summary or bio but no checked date")
sources = a.get("source")
if sources is None:
if about:
errors.append(f"{who} has a summary or bio but no [[author.source]]")
elif not isinstance(sources, list) or not sources or not all(isinstance(x, dict) for x in sources):
errors.append(f"{who} source must be one or more [[author.source]] tables")
else:
for i, src in enumerate(sources, 1):
where = f"{who} source {i}"
check_unknown(src, AUTHOR_SOURCE_KEYS, where, errors)
_url(src, "url", where, errors, required=True)
_text(src, "publisher", where, errors)
urls = [x.get("url") for x in sources]
if len(set(urls)) != len(urls):
errors.append(f"{who} lists a source twice")
if not about and ("checked" in a or sources is not None):
errors.append(f"{who} has checked or [[author.source]] but no summary or bio")
def check_datafiles(root, trails, errors):
+74 -1
View File
@@ -88,11 +88,84 @@ class AuthorTest(unittest.TestCase):
self.assertEqual(run(C.check_author_entries, [dict(AUTHOR, credits=["Jo Walker"])], self.ROUTES), [])
self.assertTrue(run(C.check_author_entries, [dict(AUTHOR, credits=[])], self.ROUTES))
def test_kind_is_a_person_or_an_organisation(self):
def test_kind_is_a_person_people_or_an_organisation(self):
self.assertEqual(run(C.check_author_entries, [dict(AUTHOR, kind="organisation")], self.ROUTES), [])
self.assertEqual(run(C.check_author_entries, [dict(AUTHOR, kind="people")], self.ROUTES), [])
self.assertTrue(any("kind" in e for e in run(C.check_author_entries, [dict(AUTHOR, kind="other")], self.ROUTES)))
self.assertTrue(any("kind" in e for e in run(C.check_author_entries, [dict(AUTHOR, kind="band")], self.ROUTES)))
BIO = " ".join(["Jo Walker worked out a long route across the hills and wrote a guide to it."] * 4)
ABOUT = dict(AUTHOR, url="https://jowalker.example/", summary="Jo Walker is a hiker who works out long routes.",
bio=BIO, checked="2026-11-17", source=[{"url": "https://jowalker.example/about/", "publisher": "Jo Walker"}])
class AuthorAboutTest(unittest.TestCase):
ROUTES = AuthorTest.ROUTES
def errs(self, **changes):
entry = dict(ABOUT, **changes)
for k in [k for k, v in changes.items() if v is None]:
del entry[k]
return run(C.check_author_entries, [entry], self.ROUTES)
def has(self, text, **changes):
errs = self.errs(**changes)
self.assertTrue(any(text in e for e in errs), errs)
def test_a_full_entry_passes_and_the_fields_are_optional(self):
self.assertEqual(self.errs(), [])
self.assertEqual(run(C.check_author_entries, [AUTHOR], self.ROUTES), [])
self.assertEqual(self.errs(bio=None), []) # a summary alone, with its source and date
self.assertEqual(self.errs(summary=None), []) # a bio alone
self.assertEqual(self.errs(checked=__import__("datetime").date(2026, 11, 17)), []) # a TOML date
def test_summary_length_and_name(self):
self.has("at most 160", summary="Jo Walker " + "walks far. " * 20)
self.assertEqual(self.errs(summary="Jo Walker " + "x" * (160 - len("Jo Walker ") - 1) + "."), [])
self.has("must begin with the name", summary="A hiker, Jo Walker, works out routes.")
self.has("one sentence", summary="Jo Walker works out routes")
self.has("dash", summary="Jo Walker — a hiker.")
def test_bio_length(self):
self.has("words", bio="Jo Walker hikes.")
self.has("words", bio=" ".join(["word"] * 131) + ".")
self.assertEqual(self.errs(bio=" ".join(["word"] * 130) + "."), [])
self.assertEqual(self.errs(bio=" ".join(["word"] * 40) + "."), [])
self.has("one paragraph", bio=BIO + "\n\n" + BIO[:40] + ".")
def test_sources_and_date_are_required_with_words(self):
self.has("no [[author.source]]", source=None)
self.has("source must be", source=[])
self.has("no checked date", checked=None)
self.has("must be a date", checked="17 November 2026")
self.has("not a real date", checked="2026-02-30")
self.has("in the future", checked="2999-01-01")
self.has("source 1 is missing required field publisher", source=[{"url": "https://x.example/"}])
self.has("http", source=[{"url": "x.example", "publisher": "X"}])
self.has("source twice", source=ABOUT["source"] * 2)
self.has("but no summary or bio", summary=None, bio=None)
def test_a_pair_of_people_may_carry_the_words(self):
pair = dict(ABOUT, name="Jo and Sam", credits=["Jo and Sam"], kind="people",
summary="Jo and Sam are a couple who hike long routes together.")
self.assertEqual(run(C.check_author_entries, [pair], [("r3", "Jo and Sam")]), [])
def test_nothing_biographical_on_an_organisation(self):
org = dict(ABOUT, kind="organisation")
errs = run(C.check_author_entries, [org], self.ROUTES)
for k in ("summary", "bio", "checked", "source"):
self.assertTrue(any(f"organisation: {k} is for people only" in e for e in errs), (k, errs))
self.assertEqual(run(C.check_author_entries, [dict(AUTHOR, kind="organisation", url="https://club.example/")], self.ROUTES), [])
self.assertTrue(run(C.check_author_entries, [dict(AUTHOR, kind="organisation", url="club.example")], self.ROUTES))
self.assertTrue(run(C.check_author_entries, [dict(AUTHOR, kind="organisation", motto="x")], self.ROUTES))
def test_urls_and_unknown_keys(self):
self.has("url must be an http(s) address", url="jowalker.example")
self.has("unknown field", nickname="Jo")
self.has("unknown field", source=[{"url": "https://x.example/", "publisher": "X", "note": "n"}])
class RealFilesTest(unittest.TestCase):
def test_the_repository_files_pass(self):
import validate as V
+23
View File
@@ -1547,6 +1547,18 @@ html:not(.js) .list-head__arrow { display: none; }
.block > .block__sub { margin-block-start: var(--space-5); }
.block__sub + * { margin-block-start: var(--space-2) !important; }
.page-head__lede { max-inline-size: 40rem; color: var(--ink-2); font-size: var(--step-1); }
/* One quiet line of facts under a lede (an author's routes, their range, their own site). */
.page-head__facts {
display: flex; flex-wrap: wrap; align-items: baseline;
margin-inline-start: -1.1em; clip-path: inset(0 0 0 1.1em);
color: var(--ink-2); font: 400 var(--step--1)/1.5 var(--font-sans);
}
.page-head__facts > span { position: relative; padding-inline-start: 1.1em; }
.page-head__facts > span::before { content: "\00B7"; position: absolute; inset-inline-start: 0.4em; }
/* On a phone the sentence over such a line is set a step smaller, so the head stays short. */
@media (max-width: 40rem) {
.page-head__lede:has(+ .page-head__facts) { font-size: var(--step-0); }
}
/* Downloads */
.downloads { padding: 0; list-style: none; }
@@ -2216,6 +2228,11 @@ a.tag:hover { background: var(--sunken); }
.entry__time dd { font: 500 var(--step-0)/1.3 var(--font-sans); }
.entry__est { display: block; color: var(--ink-2); font: 400 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; }
.results__group { margin-block: var(--space-6) var(--space-2); font-size: var(--step-1); }
/* A group led by a person (the authors index): the name, then the one sentence that says who they
are, set as the start of a short profile rather than a label over the rows. */
.results__lead { margin-block: var(--space-6) var(--space-2); max-inline-size: var(--measure); }
.results__lead .results__group { margin: 0; font-size: var(--step-2); line-height: 1.2; }
.results__intro { margin-block-start: var(--space-1); color: var(--ink-2); font-size: var(--step-0); line-height: 1.45; text-wrap: pretty; }
/* "What is a route?" beside the Kind line of a route's page */
.define { font: 400 var(--step--1)/1.45 var(--font-sans); color: var(--ink-2); }
@@ -2399,6 +2416,12 @@ html:not(.js) .saved-body { display: none; }
.shelf--author .shelf__more { margin: 0; padding-block-start: var(--space-2); }
.author-list { padding: 0; list-style: none; max-inline-size: var(--measure); }
.author-list li { padding-block: var(--space-2); border-block-start: 1px dotted var(--rule); line-height: 1.45; overflow-wrap: anywhere; }
.author-list__name { font-weight: 600; }
.author-list__summary { color: var(--ink-2); font-size: var(--step--1); }
.author-list__routes { font-size: var(--step--1); }
/* An author's page, after the rows: the bio, then where it was read, in small print. */
.author-about__bio { font-size: var(--step-0); }
.author-about__sources { color: var(--ink-3); font: 400 var(--step--2)/1.45 var(--font-sans); letter-spacing: 0.02em; }
@media (max-width: 40rem) {
.shelf--author { grid-template-rows: auto 1fr auto; padding: var(--space-4); }
.shelf--author .shelf__items, .shelf--author .shelf__more { display: block; }
+188 -71
View File
@@ -3,14 +3,19 @@
A route's author is the free text of its [route].creator. authors.toml names a person (or an
organisation) with each exact credit that names them, so one page can list every route credited
to them, in any form. A credit that names two or more people appears under each of them, so the
route is on each page, and each page says who else is credited. A credit that authors.toml does
not list stands alone as its own author, and is not typed as a person. Where a route is
route is on each page, and that route's row says who else is credited. A credit that authors.toml
does not list stands alone as its own author, and is not typed as a person. Where a route is
published comes from its [[guide]] entries.
PROMINENT_MIN is the number of routes at which an author is shown at the top of /authors/,
in a block of their own, instead of in the alphabetical list below it. Change it here and the
page follows: an author who reaches it moves up with no other change.
The words about an author (summary, bio, url, and the sources they were read on) are for people
only (kind "person", or "people" for a pair or a person known by a blog's name): an organisation's
page lists its routes and nothing more.
PROMINENT_MIN is the number of routes at which a person is shown at the top of /authors/, under
their own heading with their routes as rows, instead of in the alphabetical list below it. Change
it here and the page follows: a person who reaches it moves up with no other change.
"""
import datetime
import re
import urllib.parse
@@ -21,6 +26,7 @@ INDEX = "/authors/"
PROMINENT_MIN = 3
NOT_NAMED = "Author not named"
TITLE_LIMIT = 60 # the page's own title, before the site name
HUMAN = ("person", "people") # the kinds that are people, and may carry a summary and a bio
def slug(name):
@@ -28,9 +34,10 @@ def slug(name):
def groups(records, repo_root):
"""[{name, slug, kind, credits, routes, others}] for every route author, sorted by name.
kind: "person" or "organisation" as authors.toml says, "" for a credit it does not list.
others: {route id: [the other authors the route's credit names]}."""
"""[{name, slug, kind, entry, credits, routes, others}] for every route author, sorted by name.
kind: "person", "people" or "organisation" as authors.toml says, "" for a credit it does not
list. entry: the authors.toml entry ({} for none). others: {route id: [the other authors the
route's credit names]}."""
entries = {a["name"]: a for a in datafiles.authors(repo_root)}
named = {} # credit -> [author names in authors.toml order]
for a in datafiles.authors(repo_root):
@@ -41,8 +48,9 @@ def groups(records, repo_root):
credit = facets.author(r) or NOT_NAMED
names = named.get(credit) or [credit]
for name in names:
g = by_name.setdefault(name, {"name": name, "slug": slug(name), "kind": entries.get(name, {}).get("kind", "person") if name in entries else "",
"credits": set(), "routes": [], "others": {}})
entry = entries.get(name, {})
g = by_name.setdefault(name, {"name": name, "slug": slug(name), "kind": entry.get("kind", "person") if entry else "",
"entry": entry, "credits": set(), "routes": [], "others": {}})
g["credits"].add(credit)
g["routes"].append(r)
g["others"][r["id"]] = [n for n in names if n != name]
@@ -57,9 +65,26 @@ def author_pages(records, repo_root):
return [g for g in groups(records, repo_root) if g["name"] != NOT_NAMED]
def is_human(g):
"""A person or people, as authors.toml says: not an organisation, and not a credit it does not list."""
return g["kind"] in HUMAN
def about(g):
"""The words about a person from authors.toml: {summary, bio, url, checked, sources}. Empty for
an organisation or a credit with no entry, whatever the file says (the checker refuses it too)."""
e = g.get("entry") or {}
if not is_human(g):
return {}
return {"summary": e.get("summary", ""), "bio": e.get("bio", ""), "url": e.get("url", ""),
"checked": e.get("checked"), "sources": e.get("source", [])}
def prominent(gs):
"""The authors at or above PROMINENT_MIN routes, most routes first, then by name."""
return sorted((g for g in gs if len(g["routes"]) >= PROMINENT_MIN), key=lambda g: (-len(g["routes"]), g["name"].lower()))
"""The people at or above PROMINENT_MIN routes, most routes first, then by name. Only people
lead: an organisation, or a credit with no entry, is never here however many routes it has."""
return sorted((g for g in gs if is_human(g) and len(g["routes"]) >= PROMINENT_MIN),
key=lambda g: (-len(g["routes"]), g["name"].lower()))
def path(g):
@@ -123,6 +148,52 @@ def own_sites(g):
return sorted(found.items())
def _host(url):
host = urllib.parse.urlparse(url).hostname or url
return host[4:] if host.startswith("www.") else host
def own_site(g):
"""(text, url) of the author's own site: the entry's url, else the one the records give; None."""
url = about(g).get("url")
if url:
return _host(url), url
sites = own_sites(g)
return (_host(sites[0][1]), sites[0][1]) if sites else None
def range_text(g):
""""5 routes" and "77 to 6,875 miles", or for one route "1 route" and "77 miles" (miles first)."""
lengths = [r["derived"]["length_mi"] for r in g["routes"]]
lo, hi = words.fmt_int(min(lengths)), words.fmt_int(max(lengths))
return _plural(len(lengths), "route"), (f"{hi} miles" if lo == hi else f"{lo} to {hi} miles")
def fact_lede(g):
"""The plain sentence of fact an author's page opens with where there is no summary. It names
the author and never stands in for them with a pronoun."""
routes = g["routes"]
if len(routes) == 1:
return f"{g['name']} is credited with one route on this site, {common.plain_name(routes[0])}, {_miles(routes[0])}."
count, span = range_text(g)
return f"{g['name']} is credited with {count} on this site, from {span}."
def with_html(g, rec, by_name):
"""A row's author line on an author's page: who else the route is credited to ("With Ryan
Jordan", each linked to their page), or "" where the route is this author's alone. The rest of
a credit that names no one else in full ("and collaborators") is given as written."""
others = g["others"].get(rec["id"], [])
if others:
names = [f'<a href="{esc(path(by_name[o]))}">{esc(o)}</a>' if o in by_name else esc(o) for o in others]
return Markup("With " + words.join_names(names))
credit = facets.author(rec) or ""
rest = credit.replace(g["name"], "", 1) if g["name"] in credit else ""
if " and " in rest:
return Markup("With " + esc(rest.split(" and ", 1)[1].strip()))
return ""
def _route_line(rec):
return f'<a href="{esc(common.trail_path(rec))}">{esc(common.plain_name(rec))}</a> ({esc(words.fmt_int(rec["derived"]["length_mi"]))} miles)'
@@ -131,18 +202,12 @@ def _route_links(g):
return ", ".join(_route_line(r) for r in g["routes"])
def _block(g):
"""A prominent author as a card, in the style of the lists index: name, route count, each
route with its length (which follows the units switch), and a link to their page."""
n = len(g["routes"])
items = "".join(f'<li><a href="{esc(common.trail_path(r))}">{esc(common.plain_name(r))}</a>'
f'<span class="shelf__len">{words.length(r["length_km"], mi=r["derived"]["length_mi"])}</span></li>'
for r in g["routes"])
return (f'<li class="shelf shelf--author">\n'
f' <h3 class="shelf__title"><a href="{esc(path(g))}">{esc(g["name"])}</a>'
f' <span class="shelf__count" title="Routes on this site">{n}</span></h3>\n'
f' <ul class="shelf__items">{items}</ul>\n'
f' <p class="shelf__more"><a href="{esc(path(g))}">All {n} routes by {esc(g["name"])}</a></p>\n</li>')
def _index_item(g):
"""An author in the list under the leading ones: the name, the summary where there is one, the routes."""
summary = about(g).get("summary")
line = f'<p class="author-list__summary">{esc(summary)}</p>' if summary else ""
return (f'<li><a class="author-list__name" href="{esc(path(g))}">{esc(g["name"])}</a>{line}'
f'<p class="author-list__routes">{_route_links(g)}</p></li>')
def index_page(records, site, repo_root):
@@ -150,29 +215,30 @@ def index_page(records, site, repo_root):
gs = author_pages(records, repo_root)
routes = [r for r in records if facets.kind(r) == "route"]
top = prominent(gs)
rest = [g for g in gs if g not in top]
# The others, alphabetically; organisations last, as plainly as the rest.
rest = sorted((g for g in gs if g not in top), key=lambda g: (g["kind"] == "organisation", g["name"].lower()))
n_gpx = sum(1 for r in routes if facets.gpx_here(r))
lede = f"{len(routes)} long hiking routes, worked out by {len(gs)} authors, each with a page of their own."
lede_more = (f"<p>Every author has a page with their routes and where each is published. "
f"{n_gpx} of the routes {'has' if n_gpx == 1 else 'have'} a GPX here. {esc(facets.ROUTE_DEFINITION)}</p>")
# The authors with the most routes lead the page: each under their own heading, their routes as
# the site's rows, with every route on the map beside them. The other authors follow as a list.
groups = [(f'<a href="{esc(path(g))}">{esc(g["name"])}</a> <span class="results__n">{_plural(len(g["routes"]), "route")}</span>',
g["routes"], regions.route_guides) for g in top]
# The people with the most routes lead the page: each under their own name, with the sentence
# that says who they are, their routes as the site's rows, and every route on the map beside them.
groups = [((f'<a href="{esc(path(g))}">{esc(g["name"])}</a> <span class="results__n">{_plural(len(g["routes"]), "route")}</span>',
esc(about(g).get("summary", ""))), g["routes"], regions.route_guides) for g in top]
rest_html = ""
if rest:
items = "\n".join(f'<li><a href="{esc(path(g))}">{esc(g["name"])}</a>, {_route_links(g)}</li>' for g in rest)
items = "\n".join(_index_item(g) for g in rest)
heading = "Other authors" if top else "All authors"
rest_html = f'<ul class="author-list" aria-label="{heading}">\n{items}\n</ul>\n'
listing = home.results(groups=groups, routes_list=True, top=2) if top else ""
about = (f"<p>{_plural(len(top), 'author')} with {PROMINENT_MIN} or more routes are above, the most routes first. "
"A route credited to several people is listed under each of them. An author credited in more than one form is "
"listed once, under the name authors.toml gives. Guides marked free are free; the rest are bought from the "
"author or publisher.</p>")
about_text = (f"<p>{_plural(len(top), 'author')} with {PROMINENT_MIN} or more routes are above, the most routes first. "
"A route credited to several people is listed under each of them. An author credited in more than one form is "
"listed once, under the name authors.toml gives. Guides marked free are free; the rest are bought from the "
"author or publisher.</p>")
body = (pagekit.head("Route authors", lede, [("Trails", "/"), ("Lists", "/lists/"), ("Routes", "/routes/")])
+ f"""<div class="container section place">
<h2 class="vh" id="most-routes">Authors with {PROMINENT_MIN} or more routes</h2>
{home.browse_view(listing, home.overview_map(routes, "Map of every route"), about=rest_html + about + lede_more, about_title="Other authors") if top else rest_html}
{home.browse_view(listing, home.overview_map(routes, "Map of every route"), about=rest_html + about_text + lede_more, about_title="Other authors") if top else rest_html}
<nav class="region-nav" aria-label="Related pages"><a href="/routes/">Routes with their guides</a> ·
<a href="/glossary/#route">What a route is</a> · <a href="/lists/">All lists</a></nav>
</div>""")
@@ -182,58 +248,109 @@ def index_page(records, site, repo_root):
return title, desc, Markup(body), routes
def _date_text(value):
return value.isoformat() if isinstance(value, datetime.date) else str(value or "")
def source_links(sources):
"""Each publisher once, in order of first appearance: one page is a link on the name; more are the
name then numbered links, "The Trek (1, 2)"."""
pages = {}
for x in sources:
pages.setdefault(x.get("publisher", ""), []).append(x.get("url", ""))
out = []
for pub, urls in pages.items():
if len(urls) == 1:
out.append(f'<a href="{esc(urls[0])}">{esc(pub)}</a>')
else:
nums = ", ".join(f'<a href="{esc(u)}">{i}</a>' for i, u in enumerate(urls, 1))
out.append(f"{esc(pub)} ({nums})")
return out
def about_html(g):
"""The bio paragraph and, in small print, the pages it was read on and the date it was checked;
"" where there is no bio (every organisation)."""
a = about(g)
if not a.get("bio"):
return ""
sources = source_links(a["sources"])
checked = _date_text(a.get("checked"))
small = []
if sources:
small.append("Read on " + words.join_names(sources) + ".")
if checked:
small.append(f'Checked <time datetime="{esc(checked)}">{esc(checked)}</time>.')
note = f'\n<p class="author-about__sources">{" ".join(small)}</p>' if small else ""
return f'<p class="author-about__bio">{esc(a["bio"])}</p>{note}'
def author_page(g, records, site, all_pages):
"""(title, description, body, needs_map, routes, jsonld) for /authors/<slug>/."""
"""(title, description, body, needs_map, routes, jsonld) for /authors/<slug>/.
The head is the author's name, the summary sentence that says who they are (or, with none, a
plain sentence of fact), and one quiet line: the routes, their range, and the author's own
site. The routes follow as the site's rows beside the map; a route credited to others too says
so in its own row, and nowhere else. After the rows: the bio, then each route in brief."""
routes = g["routes"]
n = len(routes)
credits = sorted(g["credits"], key=str.lower)
lengths = [r["derived"]["length_mi"] for r in routes]
if n == 1:
lede = f"{esc(g['name'])} is credited with {esc(common.plain_name(routes[0]))}, {esc(_miles(routes[0]))}."
name = g["name"]
a = about(g)
by_name = {x["name"]: x for x in all_pages}
site_link = own_site(g)
count, span = range_text(g)
if a.get("summary"):
lede = esc(a["summary"])
facts = [esc(count), esc(span)]
else:
lede = (f"{esc(g['name'])} is credited with {n} routes on this site, from {esc(words.fmt_int(min(lengths)))} "
f"to {esc(words.fmt_int(max(lengths)))} miles.")
forms = [c for c in credits if c != g["name"]]
if forms:
lede += " The records credit them as " + words.join_names(f"“{esc(c)}”" for c in forms) + "."
sites = own_sites(g)
if sites:
lede += " Their own page: " + "; ".join(f'<a href="{esc(u)}">{esc(h)}</a>' for h, u in sites) + "."
shared = [r for r in routes if g["others"].get(r["id"])]
shared_note = ""
if shared:
by_name = {x["name"]: x for x in all_pages}
lines = []
for r in shared:
people = [f'<a href="{esc(path(by_name[o]))}">{esc(o)}</a>' if o in by_name else esc(o) for o in g["others"][r["id"]]]
lines.append(f'{esc(common.plain_name(r))}: also credited to {words.join_names(people)}.')
shared_note = "<p>" + " ".join(lines) + "</p>"
briefs = "".join(f'<h4><a href="{esc(common.trail_path(r))}">{esc(common.plain_name(r))}</a></h4>\n{trail.brief(r)}\n' for r in routes)
lede = esc(fact_lede(g))
facts = []
if site_link:
facts.append(f'<a href="{esc(site_link[1])}">{esc(site_link[0])}</a>')
nav_items = [x for x in prominent(all_pages) if x is not g]
nav = (f'<nav class="region-nav" aria-label="Authors with the most routes">Authors with the most routes: '
+ " · ".join(f'<a href="{esc(path(x))}">{esc(x["name"])}</a> ({len(x["routes"])})' for x in nav_items) + "</nav>") if nav_items else ""
more = str(summary.facts(routes, records)) if n >= 3 else ""
listing = home.results(groups=[(None, routes, regions.route_guides)], routes_list=True, top=2)
about = f"{more}{shared_note}<h3 id=\"in-brief\">{'About the route' if n == 1 else 'About each route'}</h3>{briefs}"
body = (pagekit.head(f"Routes by {g['name']}", lede, [("Trails", "/"), ("Lists", "/lists/"), ("Authors", INDEX)])
more = str(summary.facts(routes, records, by_authors=False)) if n >= 3 else ""
briefs = "".join(f'<h3><a href="{esc(common.trail_path(r))}">{esc(common.plain_name(r))}</a></h3>\n{trail.brief(r)}\n' for r in routes)
listing = home.results(groups=[(None, routes, regions.route_guides)], routes_list=True, top=2,
by=lambda r: with_html(g, r, by_name))
route_title = "About the route" if n == 1 else "About each route"
bio = about_html(g)
if bio:
view = home.browse_view(listing, home.overview_map(routes, f"Map of the routes by {name}"),
about=bio, about_title=f"About {name}", about_id="about-author")
view += home.about_section(f"{more}{briefs}", route_title, "in-brief")
else:
view = home.browse_view(listing, home.overview_map(routes, f"Map of the routes by {name}"),
about=f"{more}{briefs}", about_title=route_title, about_id="in-brief")
kicker = "Route authors" if g["kind"] == "people" and " and " in name else "Route author"
body = (pagekit.head(name, lede, [("Trails", "/"), ("Lists", "/lists/"), ("Authors", INDEX)], kicker=kicker, facts=facts)
+ f"""<div class="container section place">
<h2 class="vh" id="routes">{'The route' if n == 1 else 'The routes'}</h2>
{home.browse_view(listing, home.overview_map(routes, f"Map of the routes by {g['name']}"), about=about, about_title=f"About the routes by {g['name']}")}
{view}
{nav}
<nav class="region-nav" aria-label="Related pages"><a href="/routes/">All routes</a> · <a href="{INDEX}">All route authors</a></nav>
</div>""")
name = g["name"]
options = [f"Routes by {name}: {_plural(n, 'Long Hiking Route')}", f"Routes by {name}"]
options = ([f"{name}: {common.plain_name(routes[0])}"] if n == 1 else [f"{name}: {_plural(n, 'Long Hiking Route')}"]) \
+ [f"{name}, Route Author", name]
title = next((o for o in options if len(o) <= TITLE_LIMIT), common.cut_at_word(options[-1], TITLE_LIMIT))
desc = regions._fit([f"{_plural(n, 'long hiking route')} by or with {name}, with length, where it runs, usual time and where it is published.",
f"{_plural(n, 'route')} by {name}."])
return title, desc, Markup(body), home.has_overview_map(routes), routes, person_jsonld(g, site, sites)
facts_text = f"{count} on this site, {span}."
if a.get("summary"):
desc = regions._fit([f"{a['summary']} {facts_text}", a["summary"]])
else:
desc = regions._fit([f"{fact_lede(g)} With length, where each runs, usual time and where it is published.",
fact_lede(g), f"{_plural(n, 'route')} by {name}."])
return title, desc, Markup(body), home.has_overview_map(routes), routes, person_jsonld(g, site, site_link)
def person_jsonld(g, site, sites):
"""The author as a Person, only where authors.toml says the credit is a person."""
def person_jsonld(g, site, site_link=None):
"""The author as a Person, only where authors.toml says the entry is one person (not "people",
not an organisation, not a credit it does not list): with the summary as its description and
the author's own site as its url and sameAs."""
if g["kind"] != "person":
return None
a = about(g)
url = site_link[1] if site_link else None
node = {"@type": "Person", "@id": seo.url_of(site, path(g)) + "#author", "name": g["name"],
"url": sites[0][1] if sites else None, "sameAs": [u for _, u in sites] or None}
"description": a.get("summary") or None, "url": url, "sameAs": [url] if url else None}
return seo._clean(node)
+1 -1
View File
@@ -3,7 +3,7 @@
glossary.toml [[term]] the Glossary page (olt/reference.py)
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 credited in more than one form (olt/authors.py)
authors.toml [[author]] route authors, and the words about the people among them (olt/authors.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
+24 -11
View File
@@ -150,7 +150,7 @@ def route_by_html(rec):
return Markup(text)
def entry(rec, *, level=3, extra="", routes_list=False, hidden=False, eager=False, lead=None, rank=None, more=()):
def entry(rec, *, level=3, extra="", routes_list=False, hidden=False, eager=False, lead=None, rank=None, more=(), by=None):
"""One trail in a list. Its data-* attributes drive the filters in app.js.
level: the heading level of the trail's name. extra: HTML placed last in the row.
@@ -162,6 +162,8 @@ def entry(rec, *, level=3, extra="", routes_list=False, hidden=False, eager=Fals
figure, or a figure a page compares). rank: the row's place in a ranking (data-rank, and
"No. 3" before the figure). more: [(label, HTML)] of further facts, each with its label,
after the others on the line of facts (a page that compares a few trails).
by(rec) -> HTML: the row's author line in place of "Route by" (an author's page, where it
names only the others a route is credited to); "" for none.
The Save star follows the name in the markup (so it is the next stop for the
keyboard) but is drawn under the logo, out of the row's flow (style.css
@@ -191,7 +193,8 @@ def entry(rec, *, level=3, extra="", routes_list=False, hidden=False, eager=Fals
h = f"h{level}"
tag_html = common.badges(rec, route_tag=not routes_list)
kicker = f'\n <p class="entry__kicker">{tag_html}</p>' if tag_html else ""
by = f'\n <p class="entry__by">{route_by_html(rec)}</p>' if route and not routes_list else ""
by_line = by(rec) if by is not None else route_by_html(rec) if route and not routes_list else ""
by = f'\n <p class="entry__by">{by_line}</p>' if by_line else ""
desc = entry_desc(rec)
desc_html = f'\n <p class="entry__desc">{esc(desc)}</p>' if desc else ""
time_html = esc(facets.time_text(rec)) + (' <small class="entry__est">estimate</small>' if est else "")
@@ -460,7 +463,7 @@ def key(official=True):
def results(recs=None, *, finder=False, groups=None, routes_list=False, default_sort="name", saved=False, top=3,
ranked="", lead=None, more=None, tools=True):
ranked="", lead=None, more=None, tools=True, by=None):
"""The list of trails, as every page shows it: div.results > head, key, list head, ol.entries.
Every list carries the same "Sort by" control. The rows are written in
@@ -469,7 +472,8 @@ def results(recs=None, *, finder=False, groups=None, routes_list=False, default_
finder: the home page's list, driven by the filters (live count, empty state).
groups: [(heading, trails, extra_fn)] to list the trails under headings (level `top`);
sorting is within each group and the groups keep their order.
sorting is within each group and the groups keep their order. A heading may be a pair
(heading HTML, intro HTML): the intro is a sentence under the heading (an author's summary).
top: the heading level of a trail's name where the trails are not in groups (and of a
group's heading where they are; the names then sit one level lower). 3 under a page's
own h2 (the home page); 2 on a page whose h1 is followed directly by the list.
@@ -507,9 +511,13 @@ def results(recs=None, *, finder=False, groups=None, routes_list=False, default_
routes_list=routes_list, hidden=saved,
eager=not saved and seen + i < EAGER_ROWS,
lead=lead(r) if lead else None, more=more(r) if more else (),
rank=seen + i + 1 if ranked else None) for i, r in enumerate(items))
rank=seen + i + 1 if ranked else None, by=by) for i, r in enumerate(items))
seen += len(items)
if heading:
if isinstance(heading, tuple):
heading, intro = heading
intro = f'<p class="results__intro">{intro}</p>' if intro else ""
lists += f'\n <div class="results__lead"><h{top} class="results__group">{heading}</h{top}>{intro}</div>'
elif heading:
lists += f'\n <h{top} class="results__group">{heading}</h{top}>'
list_id = ' id="entries"' if finder else ""
lists += f'\n <ol class="entries"{list_id}{every}>\n{rows}\n </ol>'
@@ -672,14 +680,19 @@ def browse_view(listing, map_html, *, about="", about_title="", about_id="about-
<div class="browse__list">{listing}{map_html}</div>
</div>"""
if about:
grid += f"""
<section class="browse-about" aria-labelledby="{esc(about_id)}">
<h2 id="{esc(about_id)}">{esc(about_title or "About these trails")}</h2>
<div class="prose">{about}</div>
</section>"""
grid += about_section(about, about_title or "About these trails", about_id)
return Markup(grid)
def about_section(html, title, section_id):
"""A section of text after the rows, under its own heading (browse_view's about)."""
return Markup(f"""
<section class="browse-about" aria-labelledby="{esc(section_id)}">
<h2 id="{esc(section_id)}">{esc(title)}</h2>
<div class="prose">{html}</div>
</section>""")
def has_overview_map(recs, scope=""):
"""True when overview_map would draw a map of these trails (needs the map library)."""
n = len(drawable_ids(recs))
+6 -3
View File
@@ -5,15 +5,18 @@ from . import words
from .markup import Markup, esc
def head(h1, lede_html, crumbs, *, kicker=""):
"""The page-head block. crumbs: [(text, href)] leading to this page; lede_html is HTML."""
def head(h1, lede_html, crumbs, *, kicker="", facts=()):
"""The page-head block. crumbs: [(text, href)] leading to this page; lede_html is HTML.
facts: short facts (HTML) set as one quiet line under the lede."""
items = "".join(f'<li><a href="{esc(h)}">{esc(t)}</a></li>' for t, h in crumbs)
kick = f'<p class="kicker">{esc(kicker)}</p>' if kicker else ""
line = "".join(f"<span>{f}</span>" for f in facts if str(f).strip())
line = f'\n <p class="page-head__facts">{line}</p>' if line else ""
return f"""<div class="page-head"><div class="container">
<nav class="breadcrumb" aria-label="Breadcrumb"><ol>{items}<li aria-current="page">{esc(h1)}</li></ol></nav>
<header class="titleblock"><div class="titleblock__text">
{kick}<h1>{esc(h1)}</h1>
<p class="page-head__lede">{lede_html}</p>
<p class="page-head__lede">{lede_html}</p>{line}
</div></header>
</div></div>"""
+4 -3
View File
@@ -56,8 +56,9 @@ def holder_counts(recs, records):
return out
def facts(recs, records):
"""The summary of a set of trails: one short paragraph (Markup). Empty for no trails."""
def facts(recs, records, by_authors=True):
"""The summary of a set of trails: one short paragraph (Markup). Empty for no trails. With
by_authors False (an author's own page) the routes-and-authors clause is left out."""
if not recs:
return Markup("")
by_length = sorted(recs, key=lambda r: (r["length_km"], r["id"]))
@@ -73,7 +74,7 @@ def facts(recs, records):
parts = []
if loops:
parts.append(f"{loops} {'is a loop' if loops == 1 else 'are loops'}")
if routes:
if routes and by_authors:
authors = {facets.author(r) for r in routes if facets.author(r)}
n = len(routes)
parts.append(f"{n} {'is a route' if n == 1 else 'are routes'}"
+188 -3
View File
@@ -7,6 +7,9 @@ These do not need the built site.
python3 -m unittest discover -s web/tests
"""
import os
import re
import shutil
import tempfile
import sys
import unittest
@@ -225,7 +228,69 @@ class CollectionTest(unittest.TestCase):
self.assertIsNone(standing.collection_page(self.coll, self.recs, SITE))
BIO = "Jo Walker has walked " + "a long way " * 20 + "and written guides to it."
AUTHORS_FIXTURE = f'''
[[author]]
name = "Jo Walker"
credits = ["Jo Walker", "Jo Walker and Sam Hill"]
url = "https://jowalker.example/"
summary = "Jo Walker is a hiker who works out long desert routes."
bio = "{BIO}"
checked = 2026-11-17
[[author.source]]
url = "https://jowalker.example/about/"
publisher = "Jo Walker's site"
[[author.source]]
url = "https://magazine.example/jo/"
publisher = "A Magazine"
[[author]]
name = "Sam Hill"
credits = ["Jo Walker and Sam Hill"]
[[author]]
name = "Ann and Bo"
kind = "people"
credits = ["Ann and Bo"]
summary = "Ann and Bo are a couple who hike long routes together."
checked = 2026-11-17
[[author.source]]
url = "https://annandbo.example/"
publisher = "Ann and Bo"
[[author]]
name = "Big Club"
kind = "organisation"
credits = ["Big Club"]
summary = "Big Club is a club that the checker would refuse to describe."
bio = "{BIO}"
'''
PRONOUN = re.compile(r"\b(he|she|him|his|her|hers|they|them|their|theirs)\b", re.I)
class AuthorTest(unittest.TestCase):
def fixture_root(self):
d = tempfile.mkdtemp()
self.addCleanup(shutil.rmtree, d)
with open(os.path.join(d, "authors.toml"), "w") as f:
f.write(AUTHORS_FIXTURE)
return d
def fixture(self, credits):
root = self.fixture_root()
recs = self.routes(credits)
gs = authors.author_pages(recs, root)
return recs, root, {g["name"]: g for g in gs}, gs
def page(self, name, credits):
recs, root, by, gs = self.fixture(credits)
return authors.author_page(by[name], recs, SITE, gs)
@staticmethod
def head(body):
html = str(body)
return html[:html.index('class="container section place"')]
def routes(self, credits):
out = []
for i, c in enumerate(credits):
@@ -249,7 +314,7 @@ class AuthorTest(unittest.TestCase):
self.assertEqual(gs["Ryan Jordan"]["others"][recs[0]["id"]], ["Andrew Skurka"])
g = gs["Ryan Jordan"]
_, _, body, _, _, person = authors.author_page(g, recs, SITE, list(gs.values()))
self.assertIn("also credited to <a href=\"/authors/andrew-skurka/\">Andrew Skurka</a>", str(body))
self.assertIn('<p class="entry__by">With <a href="/authors/andrew-skurka/">Andrew Skurka</a></p>', str(body))
self.assertEqual(person["@type"], "Person")
def test_featured_authors_lead_the_page_with_their_routes_as_the_site_s_rows(self):
@@ -281,7 +346,7 @@ class AuthorTest(unittest.TestCase):
self.assertIn('<li class="entry"', str(body))
self.assertLessEqual(len(title), 60)
self.assertEqual(person["name"], one["name"])
club = next(g for g in gs if g["name"] == "Wilderness Mindset")
club = next(g for g in gs if g["kind"] == "") # a credit with no entry in authors.toml
self.assertEqual(club["kind"], "")
self.assertIsNone(authors.author_page(club, real, SITE, gs)[5])
@@ -291,7 +356,8 @@ class AuthorTest(unittest.TestCase):
top = authors.prominent(gs)
self.assertTrue(top)
self.assertTrue(all(len(g["routes"]) >= authors.PROMINENT_MIN for g in top))
self.assertEqual(len(top), sum(1 for g in gs if len(g["routes"]) >= authors.PROMINENT_MIN))
self.assertEqual(len(top), sum(1 for g in gs if len(g["routes"]) >= authors.PROMINENT_MIN and authors.is_human(g)))
self.assertTrue(all(authors.is_human(g) for g in top)) # only people lead
counts = [len(g["routes"]) for g in top]
self.assertEqual(counts, sorted(counts, reverse=True))
body = str(authors.index_page(real, SITE, ROOT)[2])
@@ -320,6 +386,108 @@ class AuthorTest(unittest.TestCase):
self.assertIn(c, creators)
def test_the_head_is_the_name_the_summary_and_a_line_of_facts(self):
title, desc, body, _, _, _ = self.page("Jo Walker", ["Jo Walker", "Jo Walker", "Jo Walker and Sam Hill"])
head = self.head(body)
self.assertIn('<p class="kicker">Route author</p><h1>Jo Walker</h1>', head)
self.assertIn('<p class="page-head__lede">Jo Walker is a hiker who works out long desert routes.</p>', head)
self.assertIn('<p class="page-head__facts"><span>3 routes</span>', head)
self.assertIn('<a href="https://jowalker.example/">jowalker.example</a>', head)
self.assertNotIn("Routes by", head)
self.assertNotIn("Sam Hill", head) # the joint credit is in its row only
self.assertNotIn("credit", head.lower())
self.assertTrue(desc.startswith("Jo Walker is a hiker"))
self.assertLessEqual(len(desc), common.DESCRIPTION_LIMIT)
self.assertLessEqual(len(title), authors.TITLE_LIMIT)
self.assertTrue(title.startswith("Jo Walker"))
def test_the_joint_credit_is_named_on_its_row_and_nowhere_else(self):
_, _, body, _, _, _ = self.page("Jo Walker", ["Jo Walker", "Jo Walker and Sam Hill"])
html = str(body)
row = '<p class="entry__by">With <a href="/authors/sam-hill/">Sam Hill</a></p>'
self.assertEqual(html.count(row), 1)
rows = html[:html.index('class="browse-about"')]
self.assertEqual(rows.count("Sam Hill"), 1) # (each route's "In brief" after the rows gives its credit as written)
self.assertEqual(html.count('class="entry__by"'), 1) # the route that is Jo's alone has no author line
self.assertNotIn("also credited", html)
def test_the_rest_of_a_credit_that_names_no_one_else_is_given_on_its_row(self):
recs = self.routes(["Andrew Skurka", "Andrew Skurka and friends"])
g = {"name": "Andrew Skurka", "slug": "andrew-skurka", "kind": "person", "entry": {}, "credits": set(),
"routes": recs, "others": {}}
self.assertEqual(authors.with_html(g, recs[0], {}), "")
self.assertEqual(str(authors.with_html(g, recs[1], {})), "With friends")
def test_the_about_section_follows_the_rows_with_its_sources(self):
_, _, body, _, _, _ = self.page("Jo Walker", ["Jo Walker"])
html = str(body)
self.assertIn('<h2 id="about-author">About Jo Walker</h2>', html)
self.assertLess(html.index('class="entries"'), html.index('id="about-author"'))
self.assertLess(html.index('id="about-author"'), html.index('id="in-brief"'))
about = html[html.index('id="about-author"'):html.index('id="in-brief"')]
self.assertIn(f'<p class="author-about__bio">{BIO}</p>', about.replace("&#x27;", "'"))
self.assertIn('<a href="https://jowalker.example/about/">Jo Walker&#x27;s site</a>', about.replace("&#39;", "&#x27;"))
self.assertIn('<a href="https://magazine.example/jo/">A Magazine</a>', about)
self.assertIn('<time datetime="2026-11-17">2026-11-17</time>', about)
def test_with_no_summary_the_head_is_a_plain_sentence_of_fact_and_no_pronoun(self):
for name, credits in (("Sam Hill", ["Jo Walker and Sam Hill", "Jo Walker and Sam Hill"]),
("Lone Hiker", ["Lone Hiker"]), ("Big Club", ["Big Club", "Big Club"])):
title, desc, body, _, _, _ = self.page(name, credits)
head = self.head(body)
self.assertIn(f'<p class="page-head__lede">{name} is credited with ', head)
self.assertNotIn('id="about-author"', str(body))
text = re.sub(r"<[^>]+>", " ", str(body))
self.assertIsNone(PRONOUN.search(re.sub(r"In brief\..*", "", text, flags=re.S)), name)
self.assertIsNone(PRONOUN.search(title + " " + desc), name)
def test_an_organisation_shows_nothing_about_itself_and_is_not_a_person(self):
_, desc, body, _, _, jsonld = self.page("Big Club", ["Big Club"])
html = str(body)
self.assertNotIn("checker would refuse", html + desc)
self.assertNotIn("a long way", html)
self.assertIsNone(jsonld)
def test_each_kind(self):
recs, root, by, gs = self.fixture(["Jo Walker", "Ann and Bo", "Big Club", "Nobody Listed"])
self.assertEqual({n: g["kind"] for n, g in by.items()},
{"Jo Walker": "person", "Ann and Bo": "people", "Big Club": "organisation", "Nobody Listed": ""})
self.assertEqual([n for n, g in by.items() if authors.is_human(g)], ["Ann and Bo", "Jo Walker"])
_, _, body, _, _, jsonld = authors.author_page(by["Ann and Bo"], recs, SITE, gs)
self.assertIn('<p class="kicker">Route authors</p><h1>Ann and Bo</h1>', str(body))
self.assertIn("Ann and Bo are a couple", str(body))
self.assertIsNone(jsonld) # a pair is not one Person
self.assertIsNone(authors.author_page(by["Nobody Listed"], recs, SITE, gs)[5])
def test_a_person_s_json_ld_carries_the_summary_and_own_site(self):
_, _, _, _, _, node = self.page("Jo Walker", ["Jo Walker"])
self.assertEqual(node["@type"], "Person")
self.assertEqual(node["name"], "Jo Walker")
self.assertEqual(node["description"], "Jo Walker is a hiker who works out long desert routes.")
self.assertEqual(node["url"], "https://jowalker.example/")
self.assertEqual(node["sameAs"], ["https://jowalker.example/"])
_, _, _, _, _, bare = self.page("Sam Hill", ["Jo Walker and Sam Hill"])
self.assertNotIn("description", bare)
def test_only_people_lead_the_index(self):
credits = ["Jo Walker"] * 3 + ["Ann and Bo"] * 3 + ["Big Club"] * 4 + ["Nobody Listed"] * 5 + ["Sam Hill and Jo Walker"]
recs = self.routes(credits)
root = self.fixture_root()
gs = authors.author_pages(recs, root)
self.assertEqual([g["name"] for g in authors.prominent(gs)], ["Ann and Bo", "Jo Walker"])
html = str(authors.index_page(recs, SITE, root)[2])
lead = html[:html.index('class="browse-about"')]
self.assertIn('<div class="results__lead"><h2 class="results__group"><a href="/authors/jo-walker/">Jo Walker</a>', lead)
self.assertIn('<p class="results__intro">Jo Walker is a hiker who works out long desert routes.</p>', lead)
self.assertIn('/authors/ann-and-bo/">Ann and Bo</a>', lead)
for name in ("big-club", "nobody-listed"):
self.assertNotIn(f'class="results__group"><a href="/authors/{name}/"', lead)
self.assertIn(f'/authors/{name}/', html)
rest = html[html.index('class="author-list"'):]
self.assertGreater(rest.index("/authors/big-club/"), rest.index("/authors/nobody-listed/")) # organisations last
self.assertNotIn("checker would refuse", html)
self.assertNotIn("<table", html)
class RecentTest(unittest.TestCase):
def rec(self, i, added, changes=()):
r = fake(i)
@@ -382,6 +550,23 @@ class SummaryTest(unittest.TestCase):
self.assertIn("The longest is", text)
self.assertLess(text.index("Namet2"), text.index("Namet1"))
def test_the_routes_and_authors_clause_can_be_left_out(self):
recs = [fake(i, km=mi(100 * i)) for i in (1, 2, 3)]
for r in recs:
r["name"] = f"Name{r['id']}"
r["derived"] = {**r.get("derived", {}), "kind": "route"}
r["route"] = {"creator": "A" if r["id"] == "t1" else "B"}
self.assertIn("routes by 2 authors", str(summary.facts(recs, recs)))
self.assertNotIn("routes by", str(summary.facts(recs, recs, by_authors=False)))
self.assertNotIn("are routes", str(summary.facts(recs, recs, by_authors=False)))
def test_a_publisher_with_two_pages_is_named_once_with_numbered_links(self):
html = authors.source_links([
{"publisher": "The Trek", "url": "https://a/1"}, {"publisher": "Gear", "url": "https://g"},
{"publisher": "The Trek", "url": "https://a/2"}])
self.assertEqual(html, ['The Trek (<a href="https://a/1">1</a>, <a href="https://a/2">2</a>)',
'<a href="https://g">Gear</a>'])
def test_a_small_place_gets_a_paragraph_for_each_trail(self):
recs = [fake(1, hike={"summary": "First sentence. Second sentence here.", "high_point_m": 2000, "high_point": "Top"})]
text = str(summary.details(recs))