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>
29 lines
753 B
YAML
29 lines
753 B
YAML
name: Validate
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
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
|