Add a CLI guide page to the website
/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:
+2
-2
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user