Skip to content

Commit

Permalink
Merge pull request #195 from scicloj/kindly-render-1
Browse files Browse the repository at this point in the history
Kindly render 1
  • Loading branch information
daslu authored Dec 20, 2024
2 parents c41d836 + eddefbf commit 42a18bc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).

## [2-beta26] - 2024-12-20
- brought the experimental use of `kindly-render` back

## [2-beta25] - 2024-12-02
- disabled the experimental use of kindly-render
- disabled the experimental use of `kindly-render`
- avoiding the unnecessary use of git clone for ggplotly deps

## [2-beta24] - 2024-11-30
Expand Down
2 changes: 1 addition & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[deps-deploy.deps-deploy :as dd]))

(def lib 'org.scicloj/clay)
(def version "2-beta25")
(def version "2-beta26")

(def snapshot (str version "-SNAPSHOT"))
(def class-dir "target/classes")
Expand Down
4 changes: 1 addition & 3 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
org.clojure/tools.reader {:mvn/version "1.3.7"}
com.nextjournal/beholder {:mvn/version "1.0.2"}
babashka/fs {:mvn/version "0.5.22"}
;; org.scicloj/kindly-render {:git/sha "fb37e8a5946db602d7051e6f1d52c88498789366"
;; :git/url "https://github.com/scicloj/kindly-render.git"}
}
org.scicloj/kindly-render {:mvn/version "0.1.1-alpha"}}
:aliases {:dev {:extra-paths ["notebooks"]
:extra-deps {scicloj/tablecloth {:mvn/version "7.029.2"}
org.scicloj/tableplot {:mvn/version "1-alpha14.1"}
Expand Down
17 changes: 8 additions & 9 deletions src/scicloj/clay/v2/make.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[scicloj.clay.v2.files :as files]
[clojure.pprint :as pp]
[scicloj.kindly.v4.kind :as kind]
#_[scicloj.kindly-render.notes.to-html-page :as to-html-page]))
[scicloj.kindly-render.notes.to-html-page :as to-html-page]))

(defn spec->source-type [{:keys [source-path]}]
(some-> source-path
Expand Down Expand Up @@ -313,14 +313,13 @@
(try
(files/init-target! full-target-path)
(if use-kindly-render
nil
#_(let [notebook {:notes (-> full-source-path
slurp
read/->safe-notes)}]
(-> spec
(assoc :page (to-html-page/render-notebook notebook))
server/update-page!)
[:wrote-with-kindly-render full-target-path])
(let [notebook {:notes (-> full-source-path
slurp
read/->safe-notes)}]
(-> spec
(assoc :page (to-html-page/render-notebook notebook))
server/update-page!)
[:wrote-with-kindly-render full-target-path])
(let [{:keys [items test-forms]} (notebook/items-and-test-forms
spec)
spec-with-items (-> spec
Expand Down

0 comments on commit 42a18bc

Please sign in to comment.