Mercurial
view hg-web/README.md @ 220:eb8b4230fdb9
[schwab-trader] Add guarded trading experiment
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sun, 02 Aug 2026 08:52:13 -0700 |
| parents | b818a4561a3c |
| children | 921ca3086879 |
line wrap: on
line source
# hg-web A web-based Mercurial repository browser. Provides a GitHub-style interface for browsing files, viewing code with syntax highlighting, and reading markdown documentation. ## Features - Browse repository files and directories - View code files with syntax highlighting (highlight.js) - Render markdown files with WASM-based converter - Dark/light theme support with system preference detection - Prefetch on hover for faster navigation ## Structure ``` hg-web/ ├── BUILD # Bazel build configuration ├── deploy.sh # Deployment script ├── main.c # C server handling API routes └── src/ # Frontend source files ``` ## Building ```bash bazel build //hg-web:hg_web ``` ## API Endpoints The C server (`main.c`) provides: - `GET /api/repo/list?path=` - List directory contents - `GET /api/repo/file?path=` - Fetch file contents