From 1760ae4da98ef4d123c0d24d96abde5762092636 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 13 Nov 2026 13:17:20 -0700 Subject: [PATCH] Name the dataset Long Hikes and say where changes are sent The README is titled Long Hikes, after the site at longhikes.org, and points to https://github.com/swaits/longhikes for issues and pull requests. CONTRIBUTING.md has a new section on how to send a change: the "Report a problem" form on each trail's page, editing a record in a fork, and the checks every pull request gets. The route table's column and the schema heading say "track policy", as the site does; the field is still `line_policy`. Co-Authored-By: Claude Fable 5.2 --- CHANGELOG.md | 2 +- CONTRIBUTING.md | 8 ++++++++ README.md | 8 ++++---- docs/schema.md | 2 +- tools/build_index.py | 2 +- web/tests/test_md.py | 4 ++-- 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57622bf..b38d18b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ - The inclusion rule now lists person-defined routes as well as designated trails: high routes, traverses and loops that a person or a small group worked out and published, at the same 50-mile floor. See README.md, section "Inclusion rule". - The rule follows the creator's choice. Where the creator sells the route or chooses not to publish a track, the record has no track and no track is included from any source, OpenStreetMap included. Where the creator publishes the track freely, a track is included only where the creator's terms allow it or where OpenStreetMap carries the route as a relation. -- New record fields in docs/schema.md: `kind`, the `[route]` table (creator, year, line policy, the creator's words) and the `[[guide]]` array (what the route is got from, free or for sale, with price, publisher and ISBN where known). +- New record fields in docs/schema.md: `kind`, the `[route]` table (creator, year, track policy, the creator's words) and the `[[guide]]` array (what the route is got from, free or for sale, with price, publisher and ISBN where known). - tools/validate.py checks the new fields and the track rule. tools/build_index.py carries `kind` and `line_policy` into trails.csv and index.geojson, and the README gets a second generated table for routes. - NOTICE.md says a route's creator can ask for a record to be corrected or removed. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 63037a5..d06bf51 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,6 +2,14 @@ Thank you for helping correct or extend this dataset. Please keep changes small: one trail per change where you can. +## How to send a change + +Issues and pull requests are taken at https://github.com/swaits/longhikes. That repository mirrors the maintainer's own; a change accepted there reaches both. + +- You do not need git to report something. Every trail's page on https://longhikes.org has a "Report a problem" link that opens a short form, and the repository's issue forms cover a wrong record, a missing trail, and a request from a steward or creator to remove or re-credit a track or a logo. +- To fix a record yourself, use "Edit this record" on the trail's page, or edit `/trail.toml` in a fork, and open a pull request. Say where each changed fact can be checked. +- Every pull request is checked automatically by `tools/validate.py` and the site's tests. A person still reviews it, most of all where a track is added or changed. + ## Correct a trail 1. Edit only that trail's directory. diff --git a/README.md b/README.md index d3a477e..7e40992 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Open Long Trails +# Long Hikes -A public dataset of long-distance hiking trails in the United States and Canada: one directory per trail, with a written record, the trail's track where it may be shared, and the trail's logo where one exists. First compiled for the PHRP route planner. +A public dataset of long-distance hiking trails in the United States and Canada: one directory per trail, with a written record, the trail's track where it may be shared, and the trail's logo where one exists. First compiled for the PHRP route planner. The site built from it is at https://longhikes.org. ## What this is, and what it is not @@ -149,7 +149,7 @@ Routes that a person or a small group worked out and published. The record says -| ID | Route | Country | States / provinces | Length (km) | Creator | Line policy | Track | First guide | +| ID | Route | Country | States / provinces | Length (km) | Creator | Track policy | Track | First guide | | --- | --- | --- | --- | ---: | --- | --- | --- | --- | | beartooth-high-route | Beartooth High Route | US | MT, WY | 145 | Wilderness Mindset | sold | no | [Beartooth High Route Map Pack](https://wildernessmindset.com/product/beartooth-high-route-map-pack/) (purchase) | | big-seki-loop | Big SEKI Loop | US | CA | 249 | Amy and James (Doing Miles) | open | yes | [Big SEKI Loop Route Guide](https://doingmiles.com/route-big-seki-loop/) (free) | @@ -235,7 +235,7 @@ Logos are included only to identify each trail. They belong to their holders, ar ## Report an error -Open an issue, or send a patch, with: the trail's `id`, what is wrong, and where the correct information can be checked (a source page, a map, or a measured track). Corrections to a track should name the source the corrected track came from and its licence. See CONTRIBUTING.md for how to correct a record, add a trail, or refresh a trail from its source. +Open an issue or a pull request at https://github.com/swaits/longhikes, with: the trail's `id`, what is wrong, and where the correct information can be checked (a source page, a map, or a measured track). Corrections to a track should name the source the corrected track came from and its licence. See CONTRIBUTING.md for how to correct a record, add a trail, or refresh a trail from its source. ## Sources diff --git a/docs/schema.md b/docs/schema.md index 2019d88..0befc16 100644 --- a/docs/schema.md +++ b/docs/schema.md @@ -100,7 +100,7 @@ The field and file names keep the word "line" (`line.geojson`, `line_file`, `lin | `parts` | integer, where verified | Pieces left after joining track ends within 100 m. | `1` | | `note` | string | What was found, including failures and gaps. | `"389.5 km in 12 parts against 480 km planned."` | -## `[route]`: the creator and the line policy +## `[route]`: the creator and the track policy Present only when `kind = "route"`. A route is a high route, a traverse or a loop of linked trails that a person or a small group worked out and published. diff --git a/tools/build_index.py b/tools/build_index.py index 521b95d..35d1744 100644 --- a/tools/build_index.py +++ b/tools/build_index.py @@ -211,7 +211,7 @@ def first_guide(t): def readme_route_table(trails): lines = [ - "| ID | Route | Country | States / provinces | Length (km) | Creator | Line policy | Track | First guide |", + "| ID | Route | Country | States / provinces | Length (km) | Creator | Track policy | Track | First guide |", "| --- | --- | --- | --- | ---: | --- | --- | --- | --- |", ] for t in trails: diff --git a/web/tests/test_md.py b/web/tests/test_md.py index 749452b..a009d25 100644 --- a/web/tests/test_md.py +++ b/web/tests/test_md.py @@ -401,12 +401,12 @@ class RealDocumentsTest(unittest.TestCase): def test_readme_headings(self): top = md.headings(read_doc("README.md"))[0] - self.assertEqual(top, (1, "Open Long Trails", "open-long-trails")) + self.assertEqual(top, (1, "Long Hikes", "long-hikes")) def test_readme_offset(self): html = md.render(read_doc("README.md"), heading_offset=1) self.assertNotIn("Open Long Trails', html) + self.assertIn('

Long Hikes

', html) def test_rewrite_called_for_every_real_link(self): seen = []