Files
mermaid/demos/treeView.html
T

76 lines
1.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Mermaid TreeView Diagram Demo</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
<style>
body {
font-family: 'Montserrat', sans-serif;
margin: 0 auto;
max-width: 900px;
padding: 20px;
}
.mermaid {
margin: 30px 0;
}
h1,
h2 {
color: #333;
}
pre {
background-color: #f5f5f5;
padding: 15px;
border-radius: 5px;
}
</style>
</head>
<body>
<h1>TreeView Diagram Demo</h1>
<h2>Basic TreeView Example</h2>
<pre class="mermaid">
treeView-beta
"docs"
"build"
"make.bat"
"Makefile"
"out"
"source"
"build"
"static"
"_templates"
"div. Files"
</pre>
<h2>TreeView Config Example</h2>
<pre class="mermaid">
---
config:
treeView:
rowIndent: 80
lineThickness: 3
themeVariables:
treeView:
labelFontSize: '20px'
labelColor: '#FF0000'
lineColor: '#00FF00'
---
treeView-beta
"packages"
"mermaid"
"src"
"parser"
</pre>
<script type="module">
import mermaid from './mermaid.esm.mjs';
mermaid.initialize({
logLevel: 1,
securityLevel: 'loose',
});
</script>
</body>
</html>