Invite corrections: links on every page, issue forms, site checks
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:
1 parent
1760ae4da9
commit
30c306ecc6
13 files changed
+377
-12
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user