Add a CLI guide page to the website
Test and publish the site / test (push) Successful in 32s
Test and publish the site / publish (push) Successful in 1m0s

/usaco/cli summarises the ./usaco commands, setup, a typical session and
interactive mode, linked from the header. It's a hand-written copy of the
README (the Docker build context is site/, so it can't import it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 23:27:39 +01:00
co-authored by Claude Opus 5.5
parent ac66ad6b03
commit cbf5cc32b7
5 changed files with 212 additions and 2 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# USACO site
The public face of this repo, served at `/usaco/` on adam-french.co.uk. It shows the solved problems: each solution, its sample input, saved tests and notes, and its git history, plus a stats page with a solve calendar. When the site's admin is logged in, it also shows problems in `solving/` and `skipped/`, and lets them:
The public face of this repo, served at `/usaco/` on adam-french.co.uk. It shows the solved problems: each solution, its sample input, saved tests and notes, and its git history, plus a stats page with a solve calendar and a guide to the `./usaco` CLI. When the site's admin is logged in, it also shows problems in `solving/` and `skipped/`, and lets them:
- mark a problem solved, skipped or back in progress
- set its link
@@ -49,7 +49,7 @@ Everything is served under `BASE_PATH` (`/usaco`). nginx proxies the prefix thro
| Path | Auth | What |
|---|---|---|
| `/usaco/`, `/usaco/p/<name>`, `/usaco/stats` | none | SPA |
| `/usaco/`, `/usaco/p/<name>`, `/usaco/stats`, `/usaco/cli` | none | SPA |
| `GET /usaco/api/problems` | open; the admin also gets unsolved problems | the list |
| `GET /usaco/api/problems/<name>` | open for solved problems; 404 for others unless admin | one problem, with files, tests and history |
| `GET /usaco/api/me` | open | `{admin}`, so the SPA knows whether to show the edit controls |