modcomms/documentation/architecture/render_diagrams.sh
michael b6078cf534 Add comprehensive Technical Architecture PDF documentation
Generate a professional 22-page A4 PDF covering the full ModComms system
architecture including: system overview, multi-agent AI pipeline, WebSocket
analysis flow, database schema (15 tables), frontend component hierarchy,
Azure AD authentication & RBAC, knowledge base processing pipeline,
deployment architecture, REST API reference, and appendices.

Includes 8 Mermaid diagrams rendered to high-res PNGs, styled tables,
and consistent Barclays design tokens throughout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:42:59 -06:00

21 lines
711 B
Bash
Executable file

#!/usr/bin/env bash
# Render all Mermaid .mmd diagrams to high-resolution PNGs
# Usage: bash render_diagrams.sh
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DIAGRAMS_DIR="${SCRIPT_DIR}/diagrams"
OUTPUT_DIR="${DIAGRAMS_DIR}/rendered"
mkdir -p "${OUTPUT_DIR}"
echo "Rendering Mermaid diagrams..."
for mmd_file in "${DIAGRAMS_DIR}"/*.mmd; do
filename="$(basename "${mmd_file}" .mmd)"
output_file="${OUTPUT_DIR}/${filename}.png"
echo " ${filename}.mmd -> ${filename}.png"
mmdc -i "${mmd_file}" -o "${output_file}" -s 3 -w 2400 -b white --quiet
done
echo "Done! Rendered $(ls -1 "${OUTPUT_DIR}"/*.png 2>/dev/null | wc -l | tr -d ' ') diagrams to ${OUTPUT_DIR}/"