Generate ERD diagram from schema at build time rather then dynamically to reduce dependency on mermaid js library in the frontend

This commit is contained in:
Peter Stockings
2026-01-29 13:20:45 +11:00
parent 509d11443d
commit 6fb9ba126f
10 changed files with 809 additions and 146 deletions

View File

@@ -17,19 +17,6 @@
<script src="/static/js/htmx.min.js" defer></script>
<script src="/static/js/hyperscript.min.js"></script>
<script src="/static/js/sweetalert2@11.js" defer></script>
<!-- Mermaid -->
<script src="/static/js/mermaid.min.js"></script>
<script>
// Initialize Mermaid with startOnLoad set to false
mermaid.initialize({
startOnLoad: false, // Prevent automatic rendering
theme: 'neutral',
er: {
diagramPadding: 20,
layoutDirection: 'TB',
}
});
</script>
</head>
<body>