Skip to content

Commit 1338b8a

Browse files
authored
Explanations are value laden: build fix and spelling errors (#185)
This commit removes the previously added link system due to errors I can't explain. Get the content out!
1 parent 3957d50 commit 1338b8a

File tree

1 file changed

+14
-53
lines changed

1 file changed

+14
-53
lines changed

src/civitas/why/explanations_are_value_laden.clj

Lines changed: 14 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,38 @@
11
^{:kindly/hide-code true
2-
:clay {:title "Explanations are value laden" :quarto {:author :com.github/teodorlu :type :post :date "2025-11-15"}}}
2+
:clay {:title "Explanations are value laden" :quarto {:author :com.github/teodorlu :type :post :date "2025-11-16"}}}
33
(ns civitas.why.explanations-are-value-laden
4-
(:require [civitas.why.growing-explanations-together :as-alias growing-explanations-together]
5-
[civitas.why.village.scene :as-alias search-for-meaning]
6-
[clojure.string :as str]
7-
[scicloj.kindly.v4.kind :as kind]))
8-
9-
::search-for-meaning/anchor
10-
::growing-explanations-together/anchor
11-
12-
^:kindly/hide-code
13-
(defonce link-root "")
14-
15-
^:kindly/hide-code
16-
(defn infer-html-location [anchor]
17-
;; I found this way of doing "checked" links surprisingly pleasant.
18-
;; Funnily enough, the *name* of the anchor (which we currently ignore) could (possibly) turn into a hash-link, eg "/civitas/.../scene#process" for ::search-for-meaning/process
19-
;; But let's not be distracted by shiny, new ways of linking knowledge right now.
20-
;;
21-
;; Second problem: while this link works in production, Clay doesn't care about those URLs.
22-
;; So we'll just redef the def from our REPL while writing this text.
23-
(str link-root
24-
(str/join
25-
"/"
26-
(->> (str/split (namespace anchor) #"\.")
27-
(map #(str/replace % #"-" "_"))))
28-
".html"))
4+
(:require [scicloj.kindly.v4.kind :as kind]))
295

306
^:kindly/hide-code
317
(comment
32-
;; "test".
33-
(def link-root "https://clojurecivitas.github.io/")
34-
(infer-html-location ::search-for-meaning/anchor)
35-
36-
(require '[clojure.java.browse :refer [browse-url]])
37-
(mapv (comp browse-url infer-html-location)
38-
[::search-for-meaning/anchor ::growing-explanations-together/anchor])
39-
8+
;; This post previously included a light system for linking between documents.
9+
;; However, that system unfortunately crashed the build process!
10+
;; So I had to remove it.
11+
;; See the PR for the removed code: https://github.com/ClojureCivitas/clojurecivitas.github.io/pull/185
4012
)
4113

4214
^:kindly/hide-code
43-
(defn link [anchor linktext]
44-
[:a {:href (infer-html-location anchor)} linktext])
45-
46-
;; # Explanations are value laden
47-
48-
^:kindly/hide-code
49-
(kind/hiccup [:p "Timothy Pratley recently wrote about "
50-
(link ::search-for-meaning/anchor
51-
[:span "the pursuit of " [:em "meaning"]])
52-
" on civitas."
53-
" Before that; I argued that "
54-
(link ::growing-explanations-together/anchor
55-
"Civitas is a great place to grow explanations together")
56-
"."
57-
])
15+
(kind/hiccup
16+
[:p "Timothy Pratley recently wrote about " [:a {:href "/civitas/why/village/scene.html"} "the pursuit of meaning on Civitas."]
17+
" Before that; I argued that "
18+
[:a {:href "/civitas/why/growing_explanations_together.html"} "Civitas is a great place to grow explanations together"] "."])
5819

5920
;; These two messages are connected.
6021
;; Today, I explore how.
6122
;;
62-
;; What is whorthwile to explain? Anything? No.
23+
;; What is worthwhile to explain? Anything? No.
6324
;;
6425
;; I can explain the number of grains of sand on a beach.
65-
;; That explanation is *not interesting* compared to what I *could* be explaning.
66-
;; I would rather explain how numbers with units help you gain clarity.
26+
;; That explanation is *not interesting* compared to what I *could* be explaining.
27+
;; I would rather explain how numbers with units of measure helps you write clearer code.
6728
;; How you can use a drop of science to spice up your world of software development.
6829
;; How a sliver of programming can help you move the world as a designer.
6930
;;
7031
;; I feel zero need to explain how to “nudge” people into making decisions they do not want to make.
7132
;; I feel zero need to add more mess, chaos, advertisement and coercion into an already confusing and coercive world.
7233
;; Why am I bombarded with messaging to change my behavior every place I see?
7334
;; Why does this happen even when I use services I pay for?
74-
;; I dispise this trend.
35+
;; I despise this trend.
7536
;;
7637
;; So what?
7738
;; Then what?

0 commit comments

Comments
 (0)