2022-03-17 20:48:22 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2022-09-04 21:18:36 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<title>Mermaid Quick Test Page</title>
|
|
|
|
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
|
|
|
|
<style>
|
|
|
|
div.mermaid {
|
|
|
|
/* font-family: 'trebuchet ms', verdana, arial; */
|
|
|
|
font-family: 'Courier New', Courier, monospace !important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
2022-03-17 20:48:22 +01:00
|
|
|
|
2022-09-04 21:18:36 +02:00
|
|
|
<body>
|
|
|
|
<pre class="mermaid">
|
2022-03-17 20:48:22 +01:00
|
|
|
erDiagram
|
|
|
|
title This is a title
|
|
|
|
accDescription Test a description
|
|
|
|
CUSTOMER ||--o{ ORDER : places
|
|
|
|
ORDER ||--|{ LINE-ITEM : contains
|
|
|
|
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
2022-03-17 20:48:22 +01:00
|
|
|
|
2022-09-04 21:18:36 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
|
|
|
<script>
|
|
|
|
mermaid.initialize({
|
|
|
|
theme: 'forest',
|
|
|
|
// themeCSS: '.node rect { fill: red; }',
|
|
|
|
logLevel: 3,
|
|
|
|
securityLevel: 'loose',
|
|
|
|
flowchart: { curve: 'basis' },
|
|
|
|
gantt: { axisFormat: '%m/%d/%Y' },
|
|
|
|
sequence: { actorMargin: 50 },
|
|
|
|
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|