format and add theme to cypress info.html

This commit is contained in:
Yokozuna59 2023-06-15 02:56:29 +03:00
parent 7e639bec3a
commit 35e81f3fd4
2 changed files with 13 additions and 12 deletions

View File

@ -5,18 +5,20 @@
<body>
<h1>info below</h1>
<pre class="mermaid">
info
info
</pre>
<hr />
<pre class="mermaid">
info showInfo
</pre>
<script type="module">
import mermaid from './mermaid.esm.mjs';
mermaid.initialize({
theme: 'forest',
// themeCSS: '.node rect { fill: red; }',
logLevel: 3,
flowchart: { curve: 'linear' },
gantt: { axisFormat: '%m/%d/%Y' },
sequence: { actorMargin: 50 },
// sequenceDiagram: { actorMargin: 300 } // deprecated
securityLevel: 'loose',
});
</script>
</body>

View File

@ -16,18 +16,17 @@
<h1>Info diagram demos</h1>
<pre class="mermaid">
info
</pre
>
</pre>
<hr />
<pre class="mermaid">
info showInfo
</pre
>
</pre>
<script type="module">
import mermaid from './mermaid.esm.mjs';
mermaid.initialize({
theme: 'forest',
logLevel: 3,
securityLevel: 'loose',
});