Skip to content

Commit

Permalink
Try a more stable hash
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Oct 19, 2023
1 parent 3cf9148 commit f71e206
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/nextjournal/clerk/render/hashing.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"Computes a hash based for Clerk's render cljs bundle."
{:no-doc true}
(:require [babashka.fs :as fs]
[babashka.process :refer [shell sh]]
[babashka.process :refer [shell]]
[clojure.java.io :as io]
[clojure.string :as str]
[nextjournal.dejavu :as djv]))

(def output-dirs ["resources/public/ui"
Expand Down Expand Up @@ -38,7 +37,12 @@

(defn clerk-sources+notebooks-hash []
(let [base-dir (get-base-dir)]
(str (djv/file-set-hash base-dir (fs/glob base-dir "**.{clj,cljc,cljs,md}")))))
(str (djv/file-set-hash base-dir
(concat
[(fs/path base-dir "index.clj")
(fs/path base-dir "book.clj")]
(fs/glob base-dir "notebooks/**.{md,clj,cljc}")
(fs/glob base-dir "src/**/*.{clj,cljc,cljs}"))))))

#_(clerk-sources+notebooks-hash)

Expand Down

0 comments on commit f71e206

Please sign in to comment.