Invite corrections: links on every page, issue forms, site checks
Validate / validate (push) Canceled after 0s
Validate / site (push) Canceled after 0s

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>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-13 13:17:20 -07:00
1 parent 1760ae4da9
commit 30c306ecc6
13 files changed
+377 -12

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Long Hikes website
url: https://longhikes.org
about: Browse the trails and routes, each record, its source, and its track where it may be shared.
+49
View File
@@ -0,0 +1,49 @@
name: Correction
description: A record is wrong or out of date
title: "Correction: "
body:
- type: markdown
attributes:
value: |
Thank you for helping correct this dataset. You do not need to use git:
fill in this form and a maintainer can make the change.
Every record is a text file, `<id>/trail.toml`. A correction needs a
source it can be checked against, so please give one below.
- type: input
id: trail
attributes:
label: Trail
description: The record id (shown on the trail's page, for example `arizona`), or the trail's name.
placeholder: "arizona"
validations:
required: true
- type: textarea
id: wrong
attributes:
label: What is wrong?
description: The fact, length, link, track, licence or other detail that is wrong or out of date.
validations:
required: true
- type: textarea
id: should
attributes:
label: What should it be?
description: The corrected information, as exactly as you can give it.
validations:
required: true
- type: input
id: source
attributes:
label: Where can it be checked?
description: A source page, map or other page where the correct information can be checked. For a corrected track, name where the track came from and its licence as well.
placeholder: "https://"
validations:
required: true
- type: textarea
id: notes
attributes:
label: Notes
description: Anything else that would help (optional).
validations:
required: false
+83
View File
@@ -0,0 +1,83 @@
name: Suggest a trail
description: A trail or route that is missing
title: "New trail: "
body:
- type: markdown
attributes:
value: |
Thank you for suggesting a trail or route. You do not need to use git:
fill in this form and a maintainer can add the record.
The inclusion rule (see README.md): a named, continuous walking route,
or a named loop, of at least 50 miles (80 km) — a few well-known
multi-day trails of 60–80 km are also listed — in the United States or
Canada. It is either a trail that a land agency or a trail association
designates, maintains and publishes as one trail, or a person-defined
route that a person or a small group worked out and published (a high
route, a traverse, or a loop of linked trails).
A trail can be listed as a record only, with no track, when no track
for it may be shared. A track is included only where its source's
terms allow it to be passed on.
- type: input
id: name
attributes:
label: Name
description: The trail's or route's published name.
validations:
required: true
- type: textarea
id: where
attributes:
label: Where is it?
description: Country, and the states, provinces or territories it passes through.
validations:
required: true
- type: input
id: length
attributes:
label: Length
description: The published length, in miles or kilometres, and where that figure comes from if you know it. The floor is 50 miles (80 km), apart from a few well-known trails of 60–80 km.
placeholder: "e.g. 120 miles (193 km)"
validations:
required: true
- type: input
id: steward
attributes:
label: Steward or creator
description: The land agency or trail association that designates, maintains and publishes it as one trail — or, for a person-defined route, the person or small group who worked it out and published it.
validations:
required: true
- type: input
id: official-page
attributes:
label: Official page
description: The steward's or creator's own page for the trail or route (for a route, where it is got from the creator — the guidebook, map set or page, and whether it is free or sold).
placeholder: "https://"
validations:
required: true
- type: dropdown
id: track-exists
attributes:
label: Is there a track?
description: A GPX, GeoJSON or other track of the route published by the steward or creator, or an OpenStreetMap route relation.
options:
- "Yes"
- "No"
- "I don't know"
validations:
required: false
- type: textarea
id: track-terms
attributes:
label: Track terms
description: If there is a track, where is it, and on what terms may it be passed on? A track is included only where its source's terms allow passing it on. For a person-defined route whose creator sells the route or chooses not to publish a track, the record will hold no track and will point to the creator instead.
validations:
required: false
- type: textarea
id: notes
attributes:
label: Notes
description: Anything else that would help (optional).
validations:
required: false
+58
View File
@@ -0,0 +1,58 @@
name: Removal or credit request
description: Ask for a track or logo to be removed or replaced, or its credit changed
title: "Removal: "
body:
- type: markdown
attributes:
value: |
For stewards, route creators and rights holders. If you want a track
or a logo removed or replaced, or its credit changed, please say so
here and it will be acted on: the file will be removed or replaced
and the record updated to say so. Logos are shown only to identify
each trail and belong to their holders. A route's creator can also
ask for the route's record to be corrected or removed.
Issues in this repository are public, so please do not post a
private email address or phone number here unless you are content
for it to be public.
- type: input
id: trail
attributes:
label: Trail
description: The record id (shown on the trail's page, for example `arizona`), or the trail's name.
placeholder: "arizona"
validations:
required: true
- type: input
id: relation
attributes:
label: Who are you in relation to the trail?
description: For example the trail's steward, the route's creator, the logo's holder, or the track's publisher.
validations:
required: true
- type: dropdown
id: kind
attributes:
label: What is the request about?
options:
- "A track"
- "A logo"
- "A credit"
- "The record itself"
- "Something else"
validations:
required: false
- type: textarea
id: request
attributes:
label: What should be removed or changed?
description: Say which file or credit, and what you would like done — removed, replaced, or credited differently (and with what wording). If you can, give the page that states your terms.
validations:
required: true
- type: input
id: contact
attributes:
label: How may we contact you?
description: Replies to this issue reach you through GitHub. Say here only if you would prefer another way, and only with details you are content to have public.
validations:
required: false
+12
View File
@@ -0,0 +1,12 @@
## What changed
<!-- Which trail (its record id), which fields or files, and why. -->
## Checklist
- [ ] One trail per pull request, where practical, and only that trail's directory changed.
- [ ] The validator passes: `python3 tools/build_index.py`, then `python3 tools/validate.py` prints `OK <n> trails`.
- [ ] The source for each changed fact is named (where it can be checked: a source page, a map, or a measured track).
- [ ] A track is included only where its source's terms allow it to be passed on (`redistributable` is `true` for every included file; see `docs/schema.md`). OpenStreetMap tracks carry the credit "© OpenStreetMap contributors" under the ODbL. Where a publisher's track may not be passed on, no track is included and the record says why (`source.line_absent_reason`).
- [ ] For a person-defined route, the track follows the creator's choice (`route.line_policy`): no track is included from any source, OpenStreetMap included, where the creator sells the route, withholds the track, or the position is not settled.
- [ ] `release.txt` is updated where track files changed (source, licence, date read), and any logo names its holder (`shield.logo_owner`) and where the art came from (`shield.logo_source`).
+14 -1
View File
@@ -11,5 +11,18 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: "3.12"
- run: python3 tools/validate.py
site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# Standard library only: no packages to install, and no ImageMagick.
# web/tools/make_thumbs.py is a manual tool; web/thumbs/ is committed
# and the build only copies those thumbnails (see web/olt/thumbs.py).
- run: python3 -m unittest discover -s web/tests
- run: python3 web/build.py --out _site