Files
longhikes/web/site.toml
T
swaitsandClaude Fable 5.2 abfbeb00bd
Validate / validate (push) Canceled after 0s
Add the Long Hikes static site (longhikes.org)
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>
2026-11-13 12:20:32 -07:00

32 lines
1.4 KiB
TOML

# Site-wide settings for the generated pages. Read by web/olt/site.py.
#
# The site's display name appears only here: every page, title and footer
# takes it from `name`, so a rename is a one-line change.
name = "Long Hikes"
# One line under the name: the home page <title> and the default meta description.
tagline = "Long-distance hiking trails of the United States and Canada, with their lines where they may be shared"
# Absolute origin of the deployed site, without a trailing slash, for example
# "https://example.org". When set, every page gets a canonical link. Empty: none.
base_url = "https://longhikes.org"
# Home of the source repository, for example "https://github.com/owner/repo".
# When set, pages link to it for reporting an error. Empty: those links are left out.
repo_url = ""
# Where to write to the maintainers (a contact page or a mailto: address), for
# logo removal requests and other questions. When this or repo_url is set, the
# About and Logos pages link the documents' "open an issue" and "write to the
# maintainers" wording to it. Empty: the documents' wording is left as it is.
contact_url = ""
# Language of record names that are not English, by record id (a BCP 47 tag).
# Every place a page shows one of these names as text marks it with lang="..",
# so screen readers pronounce it in that language.
[name_lang]
traversee-charlevoix = "fr"
sentier-national = "fr"
sentier-international-appalaches = "fr"