File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{:base-target-path " temp"
22 :base-source-path " src"
3- :watch-dirs [" src" ]
4- :format [:quarto :html ]
5- :run-quarto true
6- :browse false
73 :quarto-target-path " site"
84 :quarto ^:replace {}
95 :subdirs-to-sync [" src" ]
Original file line number Diff line number Diff line change 9191 :aliases
9292 {; ; Build the site with `clojure -M:clay -A:markdown`
9393 ; ; Run Clay in watch mode with `clojure -M:clay`
94- :clay {:main-opts [" -m" " civitas .clay- main" ]
94+ :clay {:main-opts [" -m" " scicloj .clay.v2. main" ]
9595 :jvm-opts [" -Dclojure.main.report=stderr"
9696 " --add-opens=java.base/java.nio=ALL-UNNAMED" ]}
9797 ; ; When debugging libraries
Load diff This file was deleted.
Original file line number Diff line number Diff line change 33 (:require [clojure.edn :as edn]
44 [clojure.pprint :as pprint]
55 [clojure.walk :as walk]
6- [scicloj.kindly.v4.api :as kindly]
76 [tablecloth.api :as tc]
87 [clj-yaml.core :as yaml]))
98
4140 (->> (index-by :id ))
4241 (update-vals #(dissoc % :id ))))
4342
44- (defn- ns-clay-config [ns-form]
45- (let [[_ sym ?doc ?attr] ns-form]
46- (kindly/deep-merge
47- (some-> ns-form meta :clay )
48- (some-> sym meta :clay )
49- (:clay (cond
50- (map? ?doc) ?doc
51- (map? ?attr) ?attr)))))
52-
53- (defn- restore-replaced-quarto-config [config]
54- (let [quarto (:quarto config)
55- ns-quarto (some-> config :ns-form ns-clay-config :quarto )]
56- (if (and ns-quarto (-> quarto meta :replace ))
57- (assoc config :quarto
58- (kindly/deep-merge ns-quarto (with-meta quarto nil )))
59- config)))
60-
6143(defn expand-authors
6244 " Hook for Clay to update ns metadata configuration"
6345 [config]
64- (-> config
65- restore-replaced-quarto-config
66- (update :quarto #(walk/prewalk-replace (author-replacements ) %))))
46+ (update config :quarto #(walk/prewalk-replace (author-replacements ) %)))
6747
6848; ; TODO: what if the front matter doesn't match existing?
6949
You can’t perform that action at this time.
0 commit comments