Show each trail's own emblem, keep a history on every record, and list what was left out
- Emblems for 81 trails, up from 41. Each is the trail's own crest, badge or roundel alone, cropped out of a larger logo where need be and made transparent where that could be done cleanly. Records without one say where an emblem was looked for. The validator checks the logo state. - Every record has a `[[history]]` list: what changed or was asked for, on what basis, who asked and whether it was applied or declined. `tools/check_history.py` fails a changed fact with no history entry and prints earlier entries about a changed field. It runs in CI before the site deploys. Each trail page shows the history. - A new page, "Considered and left out", built from `left-out.toml`: 35 trails and routes with the reason, the deciding fact and its source. - The Hoosier Heritage Trail has its ends, its free map set and its emblem from its association (issue 2). Any trail may list its holder's own guide or map set. - A stated permission is quoted in the download credit box. - `tools/gpx_track.py` turns a GPX file from a holder or a hiker into a record's track files. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
d34a9617cd
commit
24bfbb2fa8
374 files changed
+7796
-703
No files matched your search
@@ -19,6 +19,12 @@ body:
|
||||
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.
|
||||
|
||||
Before filling in this form, please look at the list of trails that
|
||||
were considered and left out, at https://longhikes.org/left-out/.
|
||||
If your trail is listed there, the decision and its reason are
|
||||
already on record. Suggest it again only if the facts have changed
|
||||
since that decision, and give a page below that shows the change.
|
||||
- type: input
|
||||
id: name
|
||||
attributes:
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
- [ ] 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 history check passes: `python3 tools/check_history.py` prints `OK history`. Each changed fact has a new `[[history]]` entry (date, what changed, fields, the page read, who asked by role, outcome), and no earlier entry was rewritten. Read any `!!` lines it prints: an earlier request on the same field may conflict with this one.
|
||||
- [ ] 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.
|
||||
|
||||
@@ -14,6 +14,34 @@ jobs:
|
||||
python-version: "3.12"
|
||||
- run: python3 tools/validate.py
|
||||
|
||||
# A change to a fact needs a new [[history]] entry (docs/schema.md). The check compares the
|
||||
# work with its base, so it needs the history of the base branch: a full clone, not the
|
||||
# shallow one that checkout makes by default.
|
||||
history:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Check the history
|
||||
env:
|
||||
EVENT: ${{ github.event_name }}
|
||||
BASE_REF: ${{ github.base_ref }}
|
||||
BEFORE: ${{ github.event.before }}
|
||||
run: |
|
||||
# A pull request is checked against its target branch; a push against the commit
|
||||
# before it. A new branch has no such commit: the tool then uses origin/main.
|
||||
if [ "$EVENT" = "pull_request" ]; then
|
||||
base="origin/$BASE_REF"
|
||||
else
|
||||
base="$BEFORE"
|
||||
fi
|
||||
python3 tools/check_history.py --base "$base"
|
||||
- run: python3 -m unittest discover tools/tests -p "test_history.py"
|
||||
|
||||
site:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -30,7 +58,7 @@ jobs:
|
||||
# Netlify builds the site from this repository when asked to. Asking only
|
||||
# after both jobs above pass means a broken record or page is never deployed.
|
||||
deploy:
|
||||
needs: [validate, site]
|
||||
needs: [validate, history, site]
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'swaits/longhikes'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in new issue
Block a user