Skip to content

Commit 11a8484

Browse files
committed
Merge branch 'main' into data-engineering-clojure-support-for-popular-data-tools
2 parents 546fee9 + 75914c9 commit 11a8484

5 files changed

Lines changed: 40 additions & 4 deletions

File tree

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
metosin/malli {:mvn/version "0.19.1"}
1212
clj-fuzzy/clj-fuzzy {:mvn/version "0.4.1"}
1313
clj-thamil/clj-thamil {:mvn/version "0.2.0"}
14-
org.scicloj/clay {:mvn/version "2-beta53"
14+
org.scicloj/clay {:mvn/version "2-beta54"
1515
#_#_:git/url "https://github.com/scicloj/clay.git"
1616
#_#_:git/sha "b5ebd1a98d7deba6c165a72077ffa08554f4c93a"}
1717
org.eclipse.elk/org.eclipse.elk.core {:mvn/version "0.10.0"}

site/db.edn

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@
9494
:image "https://avatars.githubusercontent.com/u/1161048?v=4"
9595
:email ""
9696
:affiliation [:scicloj]
97-
:links [{:icon "github" :href "https://github.com/alza-bitz"}]}]
97+
:links [{:icon "github" :href "https://github.com/alza-bitz"}]}
98+
{:id :emilbengtsson
99+
:name "Emil Bengtsson"
100+
:url "https://emil0r.com"
101+
:image "https://avatars.githubusercontent.com/u/49733?v=4"
102+
:links [{:icon "github" :href "https://github.com/emil0r"}]}]
98103

99104
:affiliation
100105
[{:id :clojure.core

site/styles.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ figcaption {
3030
text-align: center;
3131
}
3232

33-
body.quarto-dark .js-plotly-plot {
33+
body.quarto-dark .js-plotly-plot,
34+
body.quarto-dark .mermaid {
3435
filter: invert(100%) hue-rotate(180deg);
3536
}
3637

@@ -85,4 +86,4 @@ table {
8586
/* Add space between main headings and descriptions */
8687
#title-block-header.quarto-title-block.default .quarto-title .title {
8788
margin-bottom: 0.5em;
88-
}
89+
}

src/scicloj/clay/mermaid.clj

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
^{:kindly/hide-code true
2+
:clay {:title "Mermaid.js"
3+
:format [:quarto :html]
4+
:quarto {:author :emilbengtsson
5+
:description "Explain complex concepts with mermaid.js"
6+
:type :post
7+
:date "2025-09-05"
8+
:image "mermaid.png"
9+
:category :clay
10+
:tags [:clay :workflow]}}}
11+
(ns scicloj.clay.mermaid
12+
(:require [scicloj.kindly.v4.kind :as kind]))
13+
14+
15+
;; ## A picture is worth a thousand words
16+
17+
(kind/mermaid "flowchart LR
18+
Concept --> easy{Easy to understand?}
19+
easy -->|Yes| Understanding
20+
easy -->|No| Diagram
21+
easy -->|No| wall(Wall of text)
22+
Diagram --> Understanding
23+
wall -->|Didn't get it| Concept
24+
wall -->|Finally| Understanding")
25+
26+
;;
27+
;; With [mermaid.js](https://mermaid.js.org/) you can now use words to generate
28+
;; a picture. One of the trickier aspects in explaining complex ideas/concepts,
29+
;; is the infliction point where words start to pile up towards dizzying heights
30+
;; and you lose sight of what what you wanted to communicate.

src/scicloj/clay/mermaid.png

21.4 KB
Loading

0 commit comments

Comments
 (0)