Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Aug 1, 2024
1 parent f6cfb7a commit 431f13e
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
{% seo %}
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
{% include head-custom.html %}
<style>
.mermaid {
display: flex;
justify-content: center;
margin: 20px 0;
}

.language-mermaid {
background: none;
border: none;
}
</style>
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">
Expand All @@ -26,18 +38,17 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
<script>anchors.add();</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.1/mermaid.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.1/mermaid.min.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
mermaid.initialize({
startOnLoad: true,
theme: 'forest',
flowchart: {
useMaxWidth: false,
htmlLabels: true
}
});
});
var config = {
startOnReady: true,
theme: 'forest',
flowchart: {
useMaxWidth: false,
htmlLabels: true
}
};
mermaid.initialize(config);
mermaid.init(undefined, '.language-mermaid');
</script>
</body>
</html>

0 comments on commit 431f13e

Please sign in to comment.