docs: reorganize documentation with i18n and Swagger API reference

- Add per-submodule docs structure (server-core, dashboard-ui, device-agent)
- Restructure VitePress with i18n support (Indonesian default + English)
- Add Swagger API reference pages with Swagger UI CDN embed
- Create merge.js script for combining sidebar manifests
- Integrate docs build into Docker (update.sh + nginx volume mount)
- Add documentation section to root README
This commit is contained in:
datadunia
2026-06-10 02:36:24 +07:00
parent 13e8787553
commit 60d326880a
11 changed files with 2735 additions and 20 deletions
+35
View File
@@ -221,6 +221,41 @@ For automated client deployment with the Device Agent:
---
## 📚 Documentation
Documentation is built with VitePress and served at `/docs/`.
### Local Development
```bash
cd apps/docs
npm install
npm run docs:dev
```
### Building Docs
```bash
cd apps/docs
npm run docs:build
```
The output is in `apps/docs/.vitepress/dist/`.
### Structure
- `apps/docs/` — VitePress root (i18n: Indonesian + English)
- `apps/server-core/docs/` — Backend API docs & guides
- `apps/dashboard-ui/docs/` — Dashboard UI docs
- `apps/device-agent/docs/` — Device Agent docs
### Languages
- **Bahasa Indonesia** (default): `/docs/`
- **English**: `/docs/en/`
---
## 📁 File Structure
```