docs: make AGENTS.md preview commands OS-agnostic

This commit is contained in:
Workshop Bot 2026-06-09 17:25:59 +00:00
parent e7cd56b360
commit 888f63537a

View file

@ -38,13 +38,16 @@ git checkout -b describe-your-change # e.g. update-opening-hours
```
### 2. Preview locally before shipping
From the repo root, start a local server and open it in a browser:
From the repo root, start a local static server and open http://localhost:8000 in a
browser. Use whichever fits your OS:
```bash
python3 -m http.server 8000
# then open http://localhost:8000
python3 -m http.server 8000 # macOS / Linux
py -m http.server 8000 # Windows
npx serve # any OS with Node.js
```
(No Python? `npx serve` or any static file server works — just serve the repo root.)
(Any static file server works — just serve the repo root so absolute paths like
`/css/style.css` resolve.)
Visually check every page you touched. **Do not ship a change you have not previewed.**