Prettify
This commit is contained in:
parent
1009bb8fb7
commit
fd3ffdc22a
|
@ -1,23 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/html">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<title>States 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>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<title>States 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>
|
||||
|
||||
<body>
|
||||
<h1>Sankey diagram demos</h1>
|
||||
<h2>Simple example</h2>
|
||||
<pre class="mermaid">
|
||||
<body>
|
||||
<h1>Sankey diagram demos</h1>
|
||||
<h2>Simple example</h2>
|
||||
<pre class="mermaid">
|
||||
sankey
|
||||
|
||||
node[title="hello, how are you?"]
|
||||
|
@ -26,11 +25,12 @@
|
|||
First -> 30 -> Second
|
||||
First -> 10 -> Third
|
||||
Second -> 20 -> Third
|
||||
</pre>
|
||||
<!-- node[title="hello, mister "sankey", backslash for you "] -->
|
||||
</pre
|
||||
>
|
||||
<!-- node[title="hello, mister "sankey", backslash for you "] -->
|
||||
|
||||
<h2>Energy flow</h2>
|
||||
<pre class="mermaid">
|
||||
<h2>Energy flow</h2>
|
||||
<pre class="mermaid">
|
||||
sankey
|
||||
|
||||
"Agricultural 'waste'" -> 124.729 -> "Bio-conversion"
|
||||
|
@ -101,19 +101,19 @@
|
|||
"UK land based bioenergy" -> 182.01 -> "Bio-conversion"
|
||||
"Wave" -> 19.013 -> "Electricity grid"
|
||||
"Wind" -> 289.366 -> "Electricity grid"
|
||||
</pre>
|
||||
</pre
|
||||
>
|
||||
|
||||
<script type="module">
|
||||
import mermaid from './mermaid.esm.mjs';
|
||||
mermaid.initialize({
|
||||
theme: 'default',
|
||||
logLevel: 3,
|
||||
securityLevel: 'loose',
|
||||
flowchart: { curve: 'basis' },
|
||||
gantt: { axisFormat: '%m/%d/%Y' },
|
||||
sequence: { actorMargin: 50 },
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<script type="module">
|
||||
import mermaid from './mermaid.esm.mjs';
|
||||
mermaid.initialize({
|
||||
theme: 'default',
|
||||
logLevel: 3,
|
||||
securityLevel: 'loose',
|
||||
flowchart: { curve: 'basis' },
|
||||
gantt: { axisFormat: '%m/%d/%Y' },
|
||||
sequence: { actorMargin: 50 },
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
3
run
3
run
|
@ -47,6 +47,7 @@ Run commonly used commands within docker containers
|
|||
\033[1m$name dev\033[0m # Run dev server with examples, open http://localhost:9000
|
||||
|
||||
$name add # Add package, 'run add d3-sankey'
|
||||
$name prettier # Prettify a file 'run prettier <path-to-file>'
|
||||
$name lint # Equvalent of pnpm -w run lint:fix
|
||||
$name test # Run unit tests
|
||||
$name vitest # Run watcher for unit tests
|
||||
|
@ -65,4 +66,4 @@ echo -n -e "$usage"
|
|||
$name help
|
||||
;;
|
||||
|
||||
esac
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue