Doc Index
This site is deployed on GitHub Pages from the docs/ directory of the repository.
Web API Documentation
- API Overview — base path, authentication, response format and error codes
- Authentication & Quick Start — login flow and calling examples (curl / JS / Python)
- Endpoint Reference (auto-generated) — every endpoint, extracted from the firmware source by
Script/gen_web_api_docs.py - Module guides: Network Management
Topic Docs
- Photo Capture & Upload Flow — full pipeline of button/RTC-wakeup capture and MQTT upload
- RTMP API · PIR Sensor API · PoE Network API
- Video Stream Hub Design
Maintenance & Sync Mechanism
The site is built with VitePress. See docs/README.md for local development and build instructions. The site is bilingual — English is the default at the root path, 简体中文 lives under /zh/.
The Web API endpoint reference is auto-generated: the script scans the route registration tables in Custom/Services/Web/api/*.c and produces the pages under web-api/endpoints/ (both languages). Therefore:
- After changing API routes (adding/removing endpoints, changing paths/methods/auth), run
python3 Script/gen_web_api_docs.pyand commit the result together with your change; - CI runs the same script with
--checkon every PR — stale endpoint docs block merging; - On push to
main, GitHub Actions regenerates the endpoint docs and redeploys Pages, so the live site always reflects the code.
Hand-written module guides should be updated manually when API behavior changes; the PR check emits a warning whenever Web API code changes without any change under docs/.