Appearance
Catalog site tài liệu (lab)
Version: 1.4
Date: 2026-12-01
Status: Working baseline
Hub platform-docs giữ overview / quyết định nền tảng / stub. SoT chi tiết theo từng repo được publish trên URL lab dưới đây — ưu tiên link HTTPS thay vì path filesystem (platform-*/docs/) khi đọc trên site.
Quy ước tên Docker image (docs)
Pattern: minap-docs (hub) hoặc minap-docs-<short> (repo khác).
| Không dùng | Dùng |
|---|---|
minap-core-docs, minap-file-docs, … | minap-docs-core, minap-docs-file, … |
Tách biệt image runtime dịch vụ (vd. File Service minap-file / minap-file-worker — DEC-016): không dùng prefix minap-docs- cho service runtime.
Quy ước tên script build/push
Chi tiết SoT: /framework/15-repo-tooling-baseline §12.0.
| Repo kiểu | Scripts | npm scripts | Image |
|---|---|---|---|
Docs-only (platform-docs, platform-core hiện tại) | scripts/production.build.sh + production.tag-and-push.sh + production.service-create.sh / production.service-rm.sh | docker:build / docker:push | minap-docs / minap-docs-core |
UI catalog (platform-ui) | cùng production.build.sh … + production.service-create.sh / production.service-rm.sh | docker:build / docker:push | minap-docs-ui |
Service + docs (platform-file) | Service: production.build.sh … → minap-file | docker:build / docker:push | minap-file |
Docs: production.docs.build.sh … + production.docs.service-create.sh / production.docs.service-rm.sh → minap-docs-file | docker:docs:build / docker:docs:push | minap-docs-file (+ Dockerfile.docs) |
Không dùng một production.build.sh cho cả hai image.
Swarm deploy (hub): sau push registry, trên manager (checkout đúng commit đã push): ./scripts/production.service-create.sh (file: production.docs.service-create.sh). Tag image = package.json version + git SHA8 (giống build/push). Constraint mặc định minap-edge=true; Nginx Flow 1 trong platform-infra/nginx/conf.d/docs*.minap.fxmonit.com.conf → http://minap-docs*:80.
Sites
| Repo | Vai trò | Docs URL | Docs image | Ghi chú |
|---|---|---|---|---|
platform-docs | Hub SoT (overview, D-*, framework) | https://docs.minap.fxmonit.com/ | minap-docs | Site này |
platform-ui | UI kit docs (+ playground) | https://docs-ui.minap.fxmonit.com/ | minap-docs-ui | |
platform-file | File Service SoT (VitePress) | https://docs-file.minap.fxmonit.com/ | minap-docs-file (Dockerfile.docs + production.docs.*) | Runtime service = minap-file |
platform-core | Platform Core SoT | https://docs-core.minap.fxmonit.com/ | minap-docs-core | |
platform-sdk | SDK docs | https://docs-sdk.minap.fxmonit.com/ | minap-docs-sdk (dự kiến) | Site dự kiến |
platform-api | API docs | https://docs-api.minap.fxmonit.com/ | minap-docs-api (dự kiến) | Site dự kiến |
Deep link thường dùng
| Chủ đề | URL |
|---|---|
| Core — database | docs-core …/database/01-overview |
| Core — journeys | docs-core …/journeys/ |
| Core — library | docs-core …/library/ |
| File — database | docs-file …/database/ |
| File — lifecycle | docs-file …/lifecycle/ |
Quy ước cho Agent / Owner
- Trên VitePress hub, khi trỏ SoT chi tiết → dùng URL bảng trên (không ghi cứng
platform-file/docs//platform-core/docs/như đường dẫn máy local). - Path checkout local vẫn hợp lệ cho Agent implement trong workspace — nhưng tài liệu published phải deep-link lab.
- Site dự kiến (sdk/api): ghi nhãn Dự kiến cho đến khi Owner confirm đã deploy.