Validate / validate (push) Canceled after 0s
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>
25 lines
1.1 KiB
TOML
25 lines
1.1 KiB
TOML
# Netlify configuration for the Long Hikes static site.
|
|
#
|
|
# Python version selection (checked 2026-11-10). Netlify's build docs say the
|
|
# version comes from the PYTHON_VERSION environment variable, a runtime.txt
|
|
# file (version only, x.y, no trailing newline), or a Pipfile. A
|
|
# `.python-version` file is NOT a Netlify mechanism:
|
|
# https://docs.netlify.com/build/configure-builds/manage-dependencies/#python
|
|
# The current build image is Ubuntu 24.04 and supports any official Python
|
|
# version, default 3.x:
|
|
# https://docs.netlify.com/build/configure-builds/available-software-at-build-time/
|
|
#
|
|
# Pin 3.12: web/build.py needs tomllib (Python >= 3.11), and 3.12 is the Python
|
|
# shipped with Ubuntu 24.04, so the build does not have to fetch an interpreter.
|
|
# Setting it here (rather than in runtime.txt) keeps the pin beside the command.
|
|
[build]
|
|
command = "python3 web/build.py --out _site"
|
|
publish = "_site"
|
|
|
|
[build.environment]
|
|
PYTHON_VERSION = "3.12"
|
|
|
|
# Response headers come from web/static/_headers, which web/build.py copies to
|
|
# _site/_headers on every build. Syntax (checked 2026-11-10):
|
|
# https://docs.netlify.com/manage/routing/headers/
|