File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ Changes can be:
50
50
51
51
* 🐜 Ensure custom ` print-method ` supporting unreadable symbols preserves metadata
52
52
53
+ * 🐞 Preserve ` *ns* ` during ` build! ` , fixes [ #506 ] ( https://github.com/nextjournal/clerk/issues/506 )
54
+
53
55
## 0.13.842 (2023-03-07)
54
56
55
57
* 💫 Support pagination for values nested inside ` clerk/html `
Original file line number Diff line number Diff line change 389
389
(report-fn {:stage :building :doc doc :idx idx})
390
390
(let [{result :result duration :time-ms } (eval/time-ms
391
391
(try
392
- (binding [*build-opts* opts
392
+ (binding [*ns* *ns*
393
+ *build-opts* opts
393
394
viewer/doc-url (partial doc-url opts state file)]
394
395
(let [doc (eval/eval-analyzed-doc doc)]
395
396
(assoc doc :viewer (view/doc->viewer (assoc opts :static-build? true
Original file line number Diff line number Diff line change 14
14
(is (= (#'builder/path-to-url-canonicalize dice) (str/replace dice (File/separator ) " /" ))))))
15
15
16
16
(deftest static-app
17
- (let [url* (volatile! nil )]
17
+ (let [url* (volatile! nil )
18
+ original-*ns* *ns*]
18
19
(with-redefs [clojure.java.browse/browse-url (fn [path]
19
20
(vreset! url* path))]
20
21
(testing " browser receives canonical url in this system arch"
24
25
(builder/build-static-app! {:browse? true
25
26
:paths [" notebooks/hello.clj" ]
26
27
:out-path temp})
27
- (is (= expected @url*))))))))
28
+ (is (= expected @url*)))))
29
+
30
+ (testing " *ns* isn't changed (#506)"
31
+ (is (= original-*ns* *ns*))))))
28
32
29
33
(def test-paths [" boo*.clj" ])
30
34
(def test-paths-fn (fn [] [" boo*.clj" ]))
You can’t perform that action at this time.
0 commit comments