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
+9
View File
@@ -47,6 +47,15 @@ echo "[+] Syncing and updating submodules..."
SUBMODULE_FAILED=false
git submodule update --init --recursive --remote || { SUBMODULE_FAILED=true; echo "[!] Git submodule update skipped or failed."; }
# 2b. Build VitePress docs (non-blocking)
echo "[+] Building VitePress documentation..."
DOCS_BUILD_FAILED=false
if [ -d "apps/docs" ]; then
(cd apps/docs && npm install && npm run docs:build) || { DOCS_BUILD_FAILED=true; echo "[!] Docs build failed. Documentation may be stale. Continuing deployment..."; }
else
echo "[!] apps/docs directory not found. Skipping docs build."
fi
# 3. Hitung state hash (git + .env) untuk deteksi perubahan
CURRENT_HASH=$(echo "$(git rev-parse HEAD 2>/dev/null)$(git submodule status 2>/dev/null)$(sha256sum .env 2>/dev/null)" | sha256sum | cut -d" " -f1)