-
Notifications
You must be signed in to change notification settings - Fork 2
/
render_all.clj
47 lines (35 loc) · 1.78 KB
/
render_all.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(ns render-all
(:require [notespace.cli :as cli]
[notespace.api :as note]
[clojure.java.shell]
[nextjournal.clerk :as clerk]))
(def nss [
{:ns 'scicloj.ml.intro :output-file "docs/userguide-intro.html"}
{:ns 'scicloj.ml.advanced :output-file "docs/userguide-advanced.html"}
{:ns 'scicloj.ml.categorical :output-file "docs/userguide-categrical.html"}
{:ns 'scicloj.ml.transformers :output-file "docs/userguide-transformers.html"}
{:ns 'scicloj.ml.titanic :output-file "docs/userguide-titanic.html"}
{:ns 'scicloj.ml.tune-titanic :output-file "docs/tune-titanic.html"}
{:ns 'scicloj.ml.sklearnclj :output-file "docs/userguide-sklearnclj.html"}
{:ns 'scicloj.ml.third-party :output-file "docs/userguide-third_party.html"}
{:ns 'scicloj.ml.experiment-tracking :output-file "docs/userguide-experiment-tracking.html"}
{:ns 'scicloj.ml.unsupervised :output-file "docs/userguide-unsupervised.html"}
{:ns 'scicloj.ml.interactions-ols :output-file "docs/interactions_ols.html"}])
(note/init :port 5678)
(run!
#(do
(println "render ns: " %)
(cli/eval-and-render-a-notespace %))
nss)
(require '[nextjournal.clerk :as clerk])
(clerk/build! {:paths ["src/scicloj/ml/models.clj"]
:bundle? true
:out-path "output"})
(println
(clojure.java.shell/sh "mv" "output/index.html" "docs/userguide-models.html"))
(clerk/build! {:paths ["src/scicloj/ml/polyglot_kmeans.clj"]
:bundle? true
:out-path "output"})
(println
(clojure.java.shell/sh "mv" "output/index.html" "docs/polyglot_kmeans.html"))
(System/exit 0)