Skip to content

Commit 9aa6c9c

Browse files
committed
Revert "Merge branch 'poc-diagrams' into gh-pages"
I will replace it with the final version, i.e. not just a proof-of-concept. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 889d17e commit 9aa6c9c

File tree

11 files changed

+1
-132
lines changed

11 files changed

+1
-132
lines changed

.github/actions/deploy-to-github-pages/action.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ runs:
8181
find public/book public/docs -name \*.html -print0 |
8282
xargs -0r sed -i 's,http://git-scm\.com,https://git-scm.com,g'
8383
84-
- uses: actions/setup-node@v5
85-
- name: pre-render the Graphviz diagrams
86-
shell: bash
87-
run: |
88-
npm install node-html-parser &&
89-
node ./script/graphviz-ssr.js
90-
9184
- name: offer PDF version of the cheat sheet
9285
shell: bash
9386
run: |

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ jobs:
3232
exit 1
3333
fi
3434
35-
- uses: actions/setup-node@v5
36-
- name: pre-render the Graphviz diagrams
37-
run: |
38-
npm install node-html-parser &&
39-
node ./script/graphviz-ssr.js
40-
4135
- name: Install @playwright/test
4236
run: npm install @playwright/test
4337
- name: offer PDF version of the cheat sheet

content/about/small-and-fast.html

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,6 @@
99
---
1010
<section class="about" id="small-and-fast">
1111

12-
{{< mermaid >}}
13-
graph TD
14-
A --> B
15-
{{< /mermaid >}}
16-
17-
<table>
18-
<tr>
19-
<th>dot</th>
20-
<th>neato</th>
21-
</tr>
22-
<tr>
23-
<td>
24-
{{< graphviz engine="dot" >}}
25-
digraph {
26-
a -> b -> c
27-
}
28-
{{< /graphviz >}}
29-
</td>
30-
<td>
31-
{{< graphviz engine="neato" >}}
32-
digraph {
33-
a -> b -> c
34-
}
35-
{{< /graphviz >}}
36-
</td>
37-
</tr>
38-
39-
</table>
40-
4112
<h2>Small and Fast</h2>
4213

4314
<p>

content/diagram-list.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

layouts/_default/baseof.html

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -191,26 +191,5 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
191191
{{ end }}
192192

193193
</body>
194-
{{ if .Store.Get "hasMermaid" -}}
195-
<script type="module">
196-
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
197-
mermaid.initialize({ startOnLoad: true });
198-
</script>
199-
{{ end -}}
200-
{{- if .Page.Store.Get "hasGraphviz" -}}
201-
<script src="{{ relURL "js/viz-global.js" }}"> </script>
202-
<script type="text/javascript">
203-
(() => {
204-
let vizInstance
205-
[...document.querySelectorAll("pre[class=graphviz]")].forEach(async (x) => {
206-
if (!vizInstance) vizInstance = await Viz.instance()
207-
const engine = x.getAttribute("engine") || undefined
208-
const svg = vizInstance.renderSVGElement(x.innerText, { engine })
209-
x.parentNode.insertBefore(svg, x);
210-
x.style.display = 'none'
211-
});
212-
})();
213-
</script>
214-
{{ end -}}
215194
</html>
216195
{{ end }}

layouts/diagram-list.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

layouts/shortcodes/graphviz.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

layouts/shortcodes/mermaid.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"license": "MIT",
66
"devDependencies": {
77
"@playwright/test": "^1.47.2",
8-
"@types/node": "^22.5.4",
9-
"node-html-parser": "^7.0.1"
8+
"@types/node": "^22.5.4"
109
}
1110
}

script/graphviz-ssr.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)