Commit 36c617dc authored by Lars Bilke's avatar Lars Bilke
Browse files

[web] Added mermaid diagrams.

parent 691f1089
......@@ -148,6 +148,14 @@ Create a branch `feature-name` off of upstream `master`-branch to work on a new
git checkout -b feature-name upstream/master
```
```mermaid
gitGraph
commit
commit
branch feature-name
commit
```
----
To keep up to date with the developments in the official repository it is recommended to rebase your feature-branch regularly (at least weekly). To see what has been updated, load a new set of changes with
......
<div class="mermaid">
{{- .Inner | safeHTML }}
</div>
{{ .Page.Store.Set "hasMermaid" true }}
......@@ -8,3 +8,10 @@
{{ $scripts := resources.Match "js/*.js" | resources.Concat "bundle.js" | fingerprint }}
<script type="text/javascript" src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"
media="screen"></script>
{{ if .Page.Store.Get "hasMermaid" }}
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>
mermaid.initialize({ startOnLoad: true, gitGraph: { mainBranchName: 'master' } });
</script>
{{ end }}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment