Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/scicloj/clay/v2/make.clj
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,14 @@
(finally (files/init-target! full-target-path)))))

(defn sync-resources! [{:keys [base-target-path
base-source-path
quarto-target-path
subdirs-to-sync
keep-sync-root]}]
(doseq [subdir subdirs-to-sync
(doseq [subdir (if (and base-source-path
(not (contains? (set subdirs-to-sync) base-source-path)))
(conj subdirs-to-sync base-source-path)
subdirs-to-sync)
target-path (if (and base-target-path quarto-target-path
(not= base-target-path quarto-target-path))
[base-target-path quarto-target-path]
Expand Down Expand Up @@ -547,5 +551,3 @@
(throw (ex-info (str "Did not find :kindly/servable in namespace metadata for " source-path)
{:id ::ns-not-servable
:source-path source-path})))))