Skip to content

Commit a983160

Browse files
add presenting presentations post
1 parent 8805d49 commit a983160

File tree

6 files changed

+83
-7
lines changed

6 files changed

+83
-7
lines changed

deps.edn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
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-beta46"
15-
:git/url "https://github.com/scicloj/clay.git"
16-
:git/sha "84c9aa79e8e82293e7c80ee81d544d3b064202f4"}
14+
org.scicloj/clay {:mvn/version "2-beta49"
15+
#_#_:git/url "https://github.com/scicloj/clay.git"
16+
#_#_:git/sha "84c9aa79e8e82293e7c80ee81d544d3b064202f4"}
1717
org.eclipse.elk/org.eclipse.elk.core {:mvn/version "0.10.0"}
1818
org.eclipse.elk/org.eclipse.elk.graph {:mvn/version "0.10.0"}
1919
org.eclipse.elk/org.eclipse.elk.graph.json {:mvn/version "0.10.0"}

site/_quarto.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ website:
55
title: "Clojure Civitas"
66
favicon: "favicon.ico"
77
site-url: "https://clojurecivitas.github.io"
8-
image: "images/civitas-icon.svg"
8+
image: "/images/civitas-icon.svg"
99
draft-mode: unlinked
1010
open-graph: true
1111
navbar:
12-
logo: "images/civitas-icon.svg"
12+
logo: "/images/civitas-icon.svg"
1313
logo-alt: "Clojure Civitas Logo"
1414
right:
1515
- about.qmd

site/brand-dark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ color:
66
tertiary: "#A4C49C" # Soft green (callouts, highlights)
77

88
logo:
9-
medium: images/civitas-icon.svg
9+
medium: /images/civitas-icon.svg
1010

1111
typography:
1212
fonts:

site/brand-light.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ color:
66
tertiary: "#A4C49C" # Soft green (callouts, highlights)
77

88
logo:
9-
medium: images/civitas-icon.svg
9+
medium: /images/civitas-icon.svg
1010

1111
typography:
1212
fonts:
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
^{:kindly/hide-code true
2+
:clay {:title "Presenting your namespace"
3+
:format [:quarto :revealjs]
4+
:quarto {:author :timothypratley
5+
:description "Did you know your blog post can be a slideshow?"
6+
:type :post
7+
:date "2025-07-30"
8+
:image "presenting_presentations.jpg"
9+
:category :clay
10+
:tags [:clay :workflow]}}}
11+
(ns scicloj.clay.presenting-presentations
12+
(:require [scicloj.kindly.v4.kind :as kind]
13+
[scicloj.tableplot.v1.plotly :as plotly]
14+
[scicloj.metamorph.ml.rdatasets :as rdatasets]))
15+
16+
^:kindly/hide-code
17+
(kind/hiccup
18+
[:div {:style "text-align: center; font-size: 2.5em;"}
19+
"When sharing ideas" [:br]
20+
"💡"
21+
[:br]
22+
"less is more"])
23+
24+
;; ## How to make a slideshow
25+
26+
;; Add a little metadata to your namespace 🪄
27+
28+
;; ```clojure
29+
;; ^{:clay {:format [:quarto :revealjs]}
30+
;; (ns my.awesome.idea)
31+
;; ...
32+
;; ```
33+
34+
;; ## The slides
35+
36+
;; Write comments
37+
38+
;; ```clojure
39+
;; ;; Markdown **in my comments**
40+
;; ```
41+
42+
;; Code
43+
44+
(+ 1 2)
45+
46+
;; and headings
47+
48+
;; ```clojure
49+
;; ;; Each heading is a slide
50+
;; ```
51+
52+
;; ## Turn data into HTML
53+
54+
(kind/hiccup
55+
[:svg {:width "100%"}
56+
[:circle {:r 40 :cx 50 :cy 50 :fill "lightblue"}]
57+
[:circle {:r 20 :cx 50 :cy 50 :fill "lightgreen"}]])
58+
59+
;; ## Powerful visualizations
60+
61+
(-> (rdatasets/datasets-iris)
62+
(plotly/layer-point
63+
{:=x :sepal-length
64+
:=y :sepal-width}))
65+
66+
;; ## That's it!
67+
68+
;; Create `src/your/idea.clj` as a Clojure namespace
69+
70+
;; Submit a PR to the [ClojureCivitas repo](https://github.com/ClojureCivitas/clojurecivitas.github.io)
71+
72+
;; Voilà — you've published your presentation.
73+
74+
;; 🌱
75+
76+
;; *Why not turn your next idea into a slideshow?*
7.94 KB
Loading

0 commit comments

Comments
 (0)