Skip to content

Commit 60001d4

Browse files
move authors to db.edn
1 parent 1aec60d commit 60001d4

13 files changed

Lines changed: 187 additions & 145 deletions

File tree

.github/workflows/render-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
restore-keys: cljdeps-
4040

4141
- name: Build the content notebooks
42-
run: clojure -M:clay -a [:markdown]
42+
run: clojure -M:clay -A:markdown
4343

4444
- name: Set up Quarto
4545
uses: quarto-dev/quarto-actions/setup@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Add metadata on your namespace to set the title, author, and tags.
5353
(ns my.namespace.example)
5454
```
5555

56-
Configure your author profile in [clay.edn](clay.edn).
56+
Configure your author profile in [site/db.edn](site/db.edn).
5757

5858
Images can be added to the same folder as the namespace,
5959
and displayed with markdown like `;; ![caption](my-image.jpg)`.

clay.edn

Lines changed: 15 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -7,63 +7,18 @@
77
:branch "main"}
88
:hide-info-line true
99
:hide-ui-header true
10-
:aliases
11-
{:markdown
12-
{:render true
13-
:base-target-path "site"
14-
:format [:quarto :html]
15-
:run-quarto false
16-
:hide-info-line false
17-
:quarto {:format {:html nil}}
18-
:quarto/expansions
19-
{:affiliation
20-
{:clojure.core {:name "Clojure.core" :url "https://clojure.org"}
21-
:scicloj {:name "Scicloj" :url "https://scicloj.github.io/"}
22-
:clojurecamp {:name "Clojure Camp" :url "https://clojure.camp/"}
23-
:hummi {:name "Hummi" :url "https://hummi.app"}}
24-
:author
25-
{:chouser
26-
{:name "Chris Houser"
27-
:image "https://avatars.githubusercontent.com/u/36110?v=4"
28-
:url "https://chouser.us/"
29-
:links [{:icon "github" :text "GitHub" :href "https://github.com/chouser"}]}
30-
:daslu
31-
{:name "Daniel Slutsky"
32-
:image "https://avatars.githubusercontent.com/u/5673102?v=4"
33-
:url "https://github.com/daslu"
34-
:affiliation [:scicloj]
35-
:links [{:icon "github" :text "GitHub" :href "https://github.com/daslu"}]}
36-
:alexmiller
37-
{:name "Alex Miller"
38-
:image "https://avatars.githubusercontent.com/u/171129?v=4"
39-
:url "https://github.com/puredanger"
40-
:affiliation [:clojure.core]
41-
:links [{:icon "github" :text "GitHub" :href "https://github.com/puredanger"}]}
42-
:echeran
43-
{:name "Elango Cheran"
44-
:image "https://www.unicode.org/consortium/img/cheran-150px.jpg"
45-
:url "https://github.com/echeran"
46-
:affiliation []
47-
:links [{:icon "github" :text "GitHub" :href "https://github.com/echeran"}
48-
{:icon "home" :text "Personal site" :href "https://www.elangocheran.com"}]}
49-
:seancorfield
50-
{:name "Sean Corfield"
51-
:image "https://avatars.githubusercontent.com/u/43875?v=4"
52-
:email "sean@corfield.org"
53-
:url "https://corfield.org"
54-
:affiliation [:clojurecamp]
55-
:links [{:icon "github" :text "GitHub" :href "https://github.com/seancorfield"}
56-
{:icon "mastodon" :text "Mastodon" :href "https://tech.lgbt/@seancorfield"}]}
57-
:timschafer
58-
{:name "Tim Schafer"
59-
:image "https://media.licdn.com/dms/image/v2/D4E03AQGuYEubu1rpeA/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1681232451970?e=1754524800&v=beta&t=YbMtki98RI584h2kge6dLdg8PF79uNb7NKt59wrpyVs"
60-
:url "https://github.com/srcerer"
61-
:affiliation [:clojurecamp]
62-
:links [{:icon "github" :text "GitHub" :href "https://github.com/srcerer"}]}
63-
:timothypratley
64-
{:name "Timothy Pratley"
65-
:url "https://timothypratley.blogspot.com/p/httpswww.html"
66-
:image "https://avatars.githubusercontent.com/u/49298?v=4"
67-
:email "timothypratley@gmail.com"
68-
:affiliation [:hummi]
69-
:links [{:icon "github" :text "GitHub" :href "https://github.com/timothypratley"}]}}}}}}
10+
11+
;; aliases
12+
:markdown
13+
{:render true
14+
:base-target-path "site"
15+
:format [:quarto :html]
16+
:run-quarto false
17+
:hide-info-line false
18+
:quarto ^:replace {}
19+
:quarto/expand (-> (slurp "site/db.edn")
20+
(clojure.edn/read-string)
21+
(mapcat [:author :affiliation])
22+
(->> (group-by :id))
23+
(update-vals first)
24+
(update-vals (fn [x] (dissoc x :id))))}}

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
clj-fuzzy/clj-fuzzy {:mvn/version "0.4.1"}
1111
clj-thamil/clj-thamil {:mvn/version "0.2.0"}
1212
org.scicloj/clay {:git/url "https://github.com/scicloj/clay"
13-
:git/sha "d8bbf8b3cce134c56faadb97410e7dfc766f24be"}
13+
:git/sha "38f98c645072503a4d0099552aee0f55d48e06ef"}
1414
org.eclipse.elk/org.eclipse.elk.core {:mvn/version "0.10.0"}
1515
org.eclipse.elk/org.eclipse.elk.graph {:mvn/version "0.10.0"}
1616
org.eclipse.elk/org.eclipse.elk.graph.json {:mvn/version "0.10.0"}

site/db.edn

Lines changed: 80 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,65 @@
11
{:author
22
[{:id :chouser
33
:name "Chris Houser"
4+
:image "https://avatars.githubusercontent.com/u/36110?v=4"
45
:url "https://chouser.us/"
5-
:links [{:icon "github" :text "GitHub" :href "https://github.com/chouser"}]}
6-
{:id :daslu
7-
:name "Daniel Slutsky"
6+
:links [{:icon "github" :href "https://github.com/chouser"}]}
7+
{:id :daslu
8+
:name "Daniel Slutsky"
9+
:image "https://avatars.githubusercontent.com/u/5673102?v=4"
10+
:url "https://scicloj.github.io/contributors/daslu/"
811
:affiliation [:scicloj]
9-
:links [{:icon "github" :text "GitHub" :href "https://github.com/daslu"}]}
10-
{:id :alexmiller
11-
:name "Alex Miller"
12+
:links [{:icon "github" :href "https://github.com/daslu"}]}
13+
{:id :alexmiller
14+
:name "Alex Miller"
15+
:image "https://avatars.githubusercontent.com/u/171129?v=4"
16+
:url "https://insideclojure.org/"
1217
:affiliation [:clojure.core]
13-
:links [{:icon "github" :text "GitHub" :href "https://github.com/puredanger"}]}
14-
{:id :timothypratley
15-
:name "Timothy Pratley"
16-
:email "timothypratley@gmail.com"
17-
:url "https://timothypratley.blogspot.com/p/httpswww.html"
18-
:affiliation [:hummi :scicloj]
19-
:links [{:icon "github" :text "GitHub" :href "https://github.com/timothypratley"}]}]
18+
:links [{:icon "github" :href "https://github.com/puredanger"}]}
19+
{:id :echeran
20+
:name "Elango Cheran"
21+
:image "https://www.unicode.org/consortium/img/cheran-150px.jpg"
22+
:url "https://www.elangocheran.com"
23+
:affiliation []
24+
:links [{:icon "github" :href "https://github.com/echeran"}]}
25+
{:id :seancorfield
26+
:name "Sean Corfield"
27+
:image "https://avatars.githubusercontent.com/u/43875?v=4"
28+
:email "sean@corfield.org"
29+
:url "https://corfield.org"
30+
:affiliation [:clojurecamp]
31+
:links [{:icon "github" :href "https://github.com/seancorfield"}
32+
{:icon "mastodon" :text "Mastodon" :href "https://tech.lgbt/@seancorfield"}]}
33+
{:id :timschafer
34+
:name "Tim Schafer"
35+
:image "https://media.licdn.com/dms/image/v2/D4E03AQGuYEubu1rpeA/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1681232451970?e=1754524800&v=beta&t=YbMtki98RI584h2kge6dLdg8PF79uNb7NKt59wrpyVs"
36+
:url "https://github.com/srcerer"
37+
:affiliation [:clojurecamp]
38+
:links [{:icon "github" :href "https://github.com/srcerer"}]}
39+
{:id :timothypratley
40+
:name "Timothy Pratley"
41+
:url "https://timothypratley.blogspot.com/p/httpswww.html"
42+
:image "https://avatars.githubusercontent.com/u/49298?v=4"
43+
:email "timothypratley@gmail.com"
44+
:affiliation [:hummi]
45+
:links [{:icon "github" :href "https://github.com/timothypratley"}]}]
2046

21-
:affiliation [{:id :clojure.core :name "Clojure.core" :url "https://clojure.org"}
22-
{:id :scicloj :name "Scicloj" :url "https://scicloj.github.io/"}
23-
{:id :clojurecamp :name "Clojure Camp" :url "https://clojure.camp/"}
24-
{:id :hummi :name "Hummi" :url "https://hummi.app"}]
47+
:affiliation
48+
[{:id :clojure.core
49+
:name "Clojure.core"
50+
:url "https://clojure.org"}
51+
{:id :scicloj
52+
:name "Scicloj"
53+
:url "https://scicloj.github.io/"}
54+
{:id :clojurecamp
55+
:name "Clojure Camp"
56+
:url "https://clojure.camp/"}
57+
{:id :hummi
58+
:name "Hummi"
59+
;; TODO: as icons
60+
:url "https://hummi.app"}]
2561

26-
:topics
62+
:topic
2763
[{:id :core
2864
:desc "Fundamental language concepts"
2965
:color "#E2F0CB"
@@ -84,28 +120,28 @@
84120
{:id :community/events
85121
:desc "Conferences and meetups"}]
86122

87-
:notebooks
123+
:notebook
88124
[
89125
;; ===== CORE =====
90126
{:id "clj-docs"
91127
:title "Official Clojure Documentation"
92128
:url "https://clojure.org/guides/getting_started"
93129
:format :reference
94-
:topics [:core]
130+
:topic [:core]
95131
:level 0}
96132

97133
{:id "brave-clojure"
98134
:title "Clojure for the Brave and True"
99135
:url "https://www.braveclojure.com/"
100136
:format :interactive-book
101-
:topics [:core :core/fp]
137+
:topic [:core :core/fp]
102138
:level 1}
103139

104140
{:id "transducers"
105141
:title "Transducers Explained"
106142
:url "https://www.youtube.com/watch?v=6mTbuzafcII"
107143
:format :video
108-
:topics [:core :core/fp]
144+
:topic [:core :core/fp]
109145
:level 2
110146
:depends-on ["clj-docs"]}
111147

@@ -114,152 +150,151 @@
114150
:title "Reagent Documentation"
115151
:url "https://reagent-project.github.io/"
116152
:format :library-docs
117-
:topics [:web :web/frontend]
153+
:topic [:web :web/frontend]
118154
:level 1}
119155

120156
{:id "re-frame"
121157
:title "re-frame: A React Framework"
122158
:url "https://day8.github.io/re-frame/"
123159
:format :library-docs
124-
:topics [:web :web/frontend]
160+
:topic [:web :web/frontend]
125161
:level 2
126162
:depends-on ["reagent-docs"]}
127163

128164
{:id "luminus"
129165
:title "Luminus Web Framework"
130166
:url "https://luminusweb.com/"
131167
:format :framework
132-
:topics [:web :web/backend]
168+
:topic [:web :web/backend]
133169
:level 2}
134170

135171
;; ===== DATA =====
136172
{:id "tablecloth"
137173
:title "Tablecloth: Dataframe Library"
138174
:url "https://github.com/scicloj/tablecloth"
139175
:format :library-docs
140-
:topics [:data :data/analysis]
176+
:topic [:data :data/analysis]
141177
:level 1}
142178

143179
{:id "clay"
144180
:title "Clay Documentation"
145181
:url "https://scicloj.github.io/clay/"
146182
:format :publishing-tool
147-
:topics [:data]
183+
:topic [:data]
148184
:level 2}
149185

150186
{:id "tech.ml"
151187
:title "tech.ml Machine Learning"
152188
:url "https://github.com/techascent/tech.ml"
153189
:format :library-docs
154-
:topics [:data :data/ml]
190+
:topic [:data :data/ml]
155191
:level 3}
156192

157193
;; ===== TOOLING =====
158194
{:id "deps-edn"
159195
:title "deps.edn Reference"
160196
:url "https://clojure.org/reference/deps_and_cli"
161197
:format :reference
162-
:topics [:tooling]
198+
:topic [:tooling]
163199
:level 0}
164200

165201
{:id "cider"
166202
:title "CIDER for Emacs"
167203
:url "https://docs.cider.mx/"
168204
:format :tool-docs
169-
:topics [:tooling :tooling/repl]
205+
:topic [:tooling :tooling/repl]
170206
:level 1}
171207

172208
{:id "shadow-cljs"
173209
:title "shadow-cljs Build Tool"
174210
:url "https://shadow-cljs.github.io/docs/UsersGuide.html"
175211
:format :tool-docs
176-
:topics [:tooling :tooling/build]
212+
:topic [:tooling :tooling/build]
177213
:level 2}
178214

179215
;; ===== COMMUNITY =====
180216
{:id "scicloj"
181217
:title "SciCloj Community"
182218
:url "https://scicloj.github.io/"
183219
:format :community
184-
:topics [:community :community/orgs]
220+
:topic [:community :community/orgs]
185221
:level 0}
186222

187223
{:id "clojure-camp"
188224
:title "ClojureCamp Events"
189225
:url "https://clojurecamp.berlin/"
190226
:format :community
191-
:topics [:community :community/events]
227+
:topic [:community :community/events]
192228
:level 1}
193229

194230
{:id "clojure-tv"
195231
:title "ClojureTV YouTube"
196232
:url "https://www.youtube.com/user/ClojureTV"
197233
:format :video-channel
198-
:topics [:community :community/learning]
234+
:topic [:community :community/learning]
199235
:level 0}
200236

201237
{:id "clojurians"
202238
:title "Clojurians Slack"
203239
:url "http://clojurians.net/"
204240
:format :community
205-
:topics [:community :community/chat]
241+
:topic [:community :community/chat]
206242
:level 0}
207243

208244
{:id "practicalli"
209245
:title "Practicalli Tutorials"
210246
:url "https://practical.li/"
211247
:format :tutorials
212-
:topics [:community :community/learning]
248+
:topic [:community :community/learning]
213249
:level 1}
214250

215251
;; ===== SYSTEMS =====
216252
{:id "jvm-tuning"
217253
:title "JVM Performance Guide"
218254
:url "https://clojure.org/reference/jvm_programming"
219255
:format :guide
220-
:topics [:systems :systems/production]
256+
:topic [:systems :systems/production]
221257
:level 3}
222258

223259
{:id "component"
224260
:title "Component Library"
225261
:url "https://github.com/stuartsierra/component"
226262
:format :library-docs
227-
:topics [:systems :systems/design]
263+
:topic [:systems :systems/design]
228264
:level 2}
229265

230266
{:id "nrepl"
231267
:title "nREPL Protocol"
232268
:url "https://nrepl.org/"
233269
:format :protocol
234-
:topics [:systems :systems/tooling]
270+
:topic [:systems :systems/tooling]
235271
:level 2}
236272

237273
{:id "datomic"
238274
:title "Datomic Database"
239275
:url "https://docs.datomic.com/cloud/"
240276
:format :database
241-
:topics [:systems :systems/data :data/db]
277+
:topic [:systems :systems/data :data/db]
242278
:level 3}
243279

244280
;; ===== CROSS-CATEGORY =====
245281
{:id "clojurescript"
246282
:title "ClojureScript Guide"
247283
:url "https://clojurescript.org/"
248284
:format :reference
249-
:topics [:core :web :tooling]
285+
:topic [:core :web :tooling]
250286
:level 1}
251287

252288
{:id "kaocha"
253289
:title "Kaocha Test Runner"
254290
:url "https://github.com/lambdaisland/kaocha"
255291
:format :tool-docs
256-
:topics [:tooling :tooling/testing]
292+
:topic [:tooling :tooling/testing]
257293
:level 2}
258294

259295
{:id "xtdb"
260296
:title "XTDB Documentation"
261297
:url "https://xtdb.com/"
262298
:format :database
263-
:topics [:systems :systems/data :data/db]
264-
:level 3}
265-
]}
299+
:topic [:systems :systems/data :data/db]
300+
:level 3}]}

0 commit comments

Comments
 (0)