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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user