mirror of https://github.com/docker/docs.git
chore: remove mermaid.js
We're not using mermaid for diagrams anymore so we can prune the dependency. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
6aced2fc9d
commit
f6191387b6
|
@ -1,61 +0,0 @@
|
|||
import mermaid from 'mermaid'
|
||||
|
||||
const theme = window.localStorage.getItem('theme-preference')
|
||||
let mermaidTheme = theme === "dark" ? "dark" : "default";
|
||||
|
||||
let mermaidConfig = {
|
||||
theme: mermaidTheme,
|
||||
logLevel: "fatal",
|
||||
securityLevel: "strict",
|
||||
startOnLoad: true,
|
||||
arrowMarkerAbsolute: false,
|
||||
|
||||
er: {
|
||||
diagramPadding: 20,
|
||||
layoutDirection: "TB",
|
||||
minEntityWidth: 100,
|
||||
minEntityHeight: 75,
|
||||
entityPadding: 15,
|
||||
stroke: "gray",
|
||||
fill: "honeydew",
|
||||
fontSize: 12,
|
||||
useMaxWidth: true,
|
||||
},
|
||||
flowchart: {
|
||||
diagramPadding: 8,
|
||||
htmlLabels: true,
|
||||
curve: "basis",
|
||||
},
|
||||
sequence: {
|
||||
diagramMarginX: 50,
|
||||
diagramMarginY: 10,
|
||||
actorMargin: 50,
|
||||
width: 150,
|
||||
height: 65,
|
||||
boxMargin: 10,
|
||||
boxTextMargin: 5,
|
||||
noteMargin: 10,
|
||||
messageMargin: 35,
|
||||
messageAlign: "center",
|
||||
mirrorActors: true,
|
||||
bottomMarginAdj: 1,
|
||||
useMaxWidth: true,
|
||||
rightAngles: false,
|
||||
showSequenceNumbers: false,
|
||||
},
|
||||
gantt: {
|
||||
titleTopMargin: 25,
|
||||
barHeight: 20,
|
||||
barGap: 4,
|
||||
topPadding: 50,
|
||||
leftPadding: 75,
|
||||
gridLineStartPadding: 35,
|
||||
fontSize: 11,
|
||||
fontFamily: 'Roboto, sans-serif',
|
||||
numberSectionStyles: 4,
|
||||
axisFormat: "%Y-%m-%d",
|
||||
topAxis: false,
|
||||
},
|
||||
};
|
||||
|
||||
mermaid.initialize(mermaidConfig);
|
|
@ -1,4 +0,0 @@
|
|||
<div class="mermaid not-prose">
|
||||
{{- .Inner | safeHTML }}
|
||||
</div>
|
||||
{{ .Page.Store.Set "hasMermaid" true }}
|
|
@ -56,8 +56,4 @@
|
|||
}}
|
||||
<script defer src="{{ $js.Permalink }}"></script>
|
||||
<link rel="preconnect" href="https://{{ site.Params.algolia.appid }}-dsn.algolia.net" crossorigin />
|
||||
{{ if .Page.Store.Get "hasMermaid" }}
|
||||
{{ $mermaid := resources.Get "js/mermaid.js" | js.Build (dict "minify" true) }}
|
||||
<script>{{ $mermaid.Content | safeJS }}</script>
|
||||
{{ end }}
|
||||
{{ partialCached "utils/resources.html" . }}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -21,7 +21,6 @@
|
|||
"@tailwindcss/typography": "^0.5.8",
|
||||
"alpinejs": "^3.12.3",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"mermaid": "^10.3.1",
|
||||
"postcss": "^8.4.19",
|
||||
"postcss-cli": "^10.1.0",
|
||||
"postcss-import": "^15.1.0",
|
||||
|
|
Loading…
Reference in New Issue