Skip to content

Commit

Permalink
cleaned up previous handling of kindly options
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Sep 10, 2024
1 parent 73060be commit 43c46ce
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/scicloj/clay/v2/notebook.clj
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@
format]}]
(binding [*ns* *ns*
*warn-on-reflection* *warn-on-reflection*
*unchecked-math* *unchecked-math*
kindly/*options* kindly/*options*]
*unchecked-math* *unchecked-math*]
(let [code (some-> full-source-path slurp)
notes (cond
single-value (conj (when code
Expand All @@ -224,11 +223,11 @@
new-items (when-not test-note
(-> complete-note
(merge/deep-merge
(-> options
(select-keys [:base-target-path
:full-target-path
:kindly/options
:format])))
(-> options
(select-keys [:base-target-path
:full-target-path
:kindly/options
:format])))
(note-to-items options)))
test-form (if test-note
;; a deftest form
Expand Down

0 comments on commit 43c46ce

Please sign in to comment.