Netlify is not notified of pushes to this repository, so the workflow
asks it to build: a third job calls a Netlify build hook once the
validator and the site's tests and build have passed on main. A failing
record or page is therefore never published.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A workflow pushes every push to main on GitHub to the primary
repository at git.swaits.com, so a pull request merged on GitHub
reaches both without anyone pulling it by hand. It uses a deploy key
that can write to that one repository, checks the forge's host key,
and never forces: if the two have diverged it fails.
CONTRIBUTING.md names the forge repository.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each trail's page now offers "Report a problem" (a GitHub form with the
record filled in), "Edit this record" and "History". The footer, the
home page and About link to the forms for a wrong record and a missing
trail, and Logos links to a form for a steward or creator who wants a
track or logo removed or re-credited. The links are built only when
repo_url in web/site.toml is a github.com repository.
.github/ has the three issue forms and a pull request checklist, and
the workflow also runs the site's tests and a build, on Python 3.12.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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 <noreply@anthropic.com>
The documents and the records' own notes now say "track" for what is
stored in line.geojson and offered as GPX. Field and file names keep
"line" (line.geojson, line_policy, line_source), and so do attribution
strings, creators' quoted words and trail names.
The pages called the thing a hiker downloads and sees on the map a
"line". They now call it a track, name the format on download links
("Download GPX and GeoJSON"), and speak of the map where the text is
about what is drawn. Field and file names shown on purpose keep
"line" (line.geojson, line_policy).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
web/ is a static site generator for the dataset, in Python's standard
library only. `python3 web/build.py --out _site` writes a page for each
of the 138 records, a finder on the home page with a map of the 85
lines, region and route indexes, and the repository's documents as
pages. Each line is offered as the record's GeoJSON and as a GPX
simplified to 5 m, with two archives of everything.
The site's name and address are set in web/site.toml: Long Hikes, at
https://longhikes.org. The dataset keeps its own name.
netlify.toml and web/static/_headers configure the Netlify site
(content types, download dispositions, caching, a content security
policy with no inline script). It is deployed with the Netlify CLI
from a local build, because Netlify cannot build from this forge.
MapLibre GL JS and the two typefaces are vendored under web/assets/;
map tiles come from OpenFreeMap. Tests: python3 -m unittest discover
-s web/tests (164).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
34 person-defined routes, each with its creator, the guide it is got
from (free or for sale), and the creator's words on sharing the line.
One has a line: the Big SEKI Loop, from its OpenStreetMap route relation
(11628437), 251.2 km against the published 249 km. The other 33 have no
line, and no line was taken from OpenStreetMap even where one exists,
because the route is sold, the creator withholds it, the question is not
settled, or the creator's download carries no licence to pass it on.
The Vancouver Island Trail is already listed as vancouver-island and is
unchanged.
Person-defined routes are now listed at the same 50-mile floor as
designated trails, as records that say where the route is got from its
creator. A line is included only where the creator's terms allow it or
where OpenStreetMap carries the route; nothing is included for a sold,
withheld or unsettled route.
Adds kind, [route] and [[guide]] to the schema, the checks in
tools/validate.py, kind and line_policy in trails.csv and
index.geojson, and a second generated README table for routes.
Each record names its steward, the page the length was read on, and the
designation. Lines are built from the trail's OpenStreetMap route relation
(ODbL-1.0). Five trails have no OpenStreetMap route relation and ship as
records only, with the reason stated.
The dataset listed trails of 100 km or more. The owner lowered the floor to
50 miles because that is about what multi-day wilderness backpacking takes.
README, CONTRIBUTING and the tier definitions in docs/schema.md say so now.
The few well-known trails between 60 km and 80 km stay listed as short.
Lines from each trail's OpenStreetMap route relation, with member ways and
nested relations, published under the ODbL: Arizona, Florida, Ice Age, North
Country, Great Divide Trail, Idaho Centennial, Long Path, Mid State and
Superior Hiking. Their publishers' own lines may not be passed on, and without
these four National Scenic Trails the map loses them.
README with inclusion rule and trail table, CONTRIBUTING,
record schema, source terms, changelog, logo notice, and a
GitHub/Gitea workflow that runs the validator.
validate.py checks every record and the generated files;
build_index.py writes trails.csv, index.geojson and the README
table. Python 3 standard library only. CC0-1.0 for the records
and docs, MIT for the tools, source licences in LICENSES/.
Records, redistributable lines, alternates, logos and release
notes, one directory per trail. Lines keep their source terms;
records name the source and licence for every file.