File tree Expand file tree Collapse file tree 11 files changed +263
-239
lines changed Expand file tree Collapse file tree 11 files changed +263
-239
lines changed Original file line number Diff line number Diff line change 2
2
. ((cider-default-cljs-repl . node)))
3
3
(clojure-mode
4
4
. ((cider-preferred-build-tool . clojure-cli)
5
- (cider-clojure-cli-aliases . " :dev: clerk" ))))
5
+ (cider-clojure-cli-aliases . " :nextjournal/ clerk" ))))
Original file line number Diff line number Diff line change @@ -10,29 +10,28 @@ jobs:
10
10
steps :
11
11
- uses : actions/cache@v3
12
12
with :
13
- path : ~/.m2
14
- key : ${{ runner.os }}-m2-${{ hashFiles('**/deps.edn') }}
15
- restore-keys : ${{ runner.os }}-m2
13
+ path : |
14
+ .cpcache
15
+ .shadow-cljs
16
+ ~/.m2
17
+ key : " 1"
16
18
17
19
- name : Checkout
18
20
uses : actions/checkout@v3
19
21
20
22
- name : Install clojure tools
21
- uses : DeLaGuardo/setup-clojure@4.0
23
+ uses : DeLaGuardo/setup-clojure@master
22
24
with :
23
25
cli : latest
26
+ bb : latest
24
27
github-token : ${{ secrets.GITHUB_TOKEN }}
25
28
26
- - name : Install babashka
27
- uses : just-sultanov/setup-babashka@v2
28
- with :
29
- version : ' 0.8.156'
30
-
31
29
- name : Build static site
32
30
run : bb build-static
33
31
34
32
- name : Deploy
35
33
uses : peaceiris/actions-gh-pages@v3
34
+ if : ${{ github.ref == 'refs/heads/main' }}
36
35
with :
37
36
github_token : ${{ secrets.GITHUB_TOKEN }}
38
37
publish_dir : ./public/build
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ jobs:
12
12
- name : Checkout
13
13
uses : actions/checkout@v2
14
14
15
- - name : Install babashka
16
- uses : just-sultanov /setup-babashka@v2
15
+ - name : Install Babashka
16
+ uses : DeLaGuardo /setup-clojure@10.2
17
17
with :
18
- version : ' 0.8.156 '
18
+ bb : latest
19
19
20
20
- name : Cache kondo directory
21
21
uses : actions/cache@v2
24
24
key : ${{ runner.os }}-kondo
25
25
restore-keys : ${{ runner.os }}-kondo
26
26
27
- - name : Run clj-kondo
27
+ - name : Lint dependencies
28
+ run : bb lint-deps
29
+
30
+ - name : Lint project files
28
31
run : bb lint --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}'
Original file line number Diff line number Diff line change 2
2
3
3
## [ unreleased]
4
4
5
+ ## [ 0.2.1]
6
+
7
+ - #15 :
8
+
9
+ - removes the ` goog.object ` to make the library compatible with SCI
10
+ evaluation, needed by Portal.
11
+
12
+ - adds various build upgrades, (Clerk, Kondo etc)
13
+
5
14
## [ 0.2.0]
6
15
7
16
The interactive docs page is now published to https://mathlive.mentat.org .
Original file line number Diff line number Diff line change 1
1
{:deps {org.babashka/http-server {:mvn/version " 0.1.11" }
2
- org.babashka/cli {:mvn/version " 0.2.23" }}
3
- :pods {clj-kondo/clj-kondo {:version " 2023.01.20" }}
2
+ org.babashka/cli {:mvn/version " 0.2.23" }
3
+ io.github.clj-kondo/clj-kondo-bb
4
+ {:git/tag " v2023.01.20" :git/sha " adfc7df" }}
4
5
:tasks
5
- {:requires ([babashka.cli :as cli]
6
- [pod.borkdude.clj-kondo :as clj-kondo])
6
+ {:requires ([babashka.cli :as cli])
7
7
:init
8
8
(do (def cli-opts
9
9
(cli/parse-opts *command-line-args* {:coerce {:port :int }}))
51
51
{:doc " Release the library to Clojars."
52
52
:task (shell " clojure -T:build publish" )}
53
53
54
+ lint-deps
55
+ {:requires ([clj-kondo.core :as kondo])
56
+ :doc " Lint dependencies."
57
+ :task (kondo/run!
58
+ {:lint [(with-out-str
59
+ (babashka.tasks/clojure
60
+ " -Spath -A:nextjournal/clerk" ))]
61
+ :dependencies true })}
62
+
54
63
lint
55
64
{:doc " Lint the src and dev directories with clj-kondo."
56
- :task (clj-kondo/print!
57
- ( clj-kondo/run! {:lint [" src" " dev" ]})) }}}
65
+ :task (exec ' clj-kondo.core/exec)
66
+ :exec-args {:lint [" src" " dev" ]}}}}
Original file line number Diff line number Diff line change 17
17
; ; ## Variables
18
18
19
19
(def lib 'org.mentat /mathlive.cljs )
20
- (def version " 0.2.0 " )
20
+ (def version " 0.2.1 " )
21
21
(def pom-deps
22
22
{'org.babashka/sci
23
23
{:mvn/version " 0.6.37"
Original file line number Diff line number Diff line change 1
1
{:paths [" src" " resources" ]
2
- :deps {reagent/reagent {:mvn/version " 1.1.1 " }}
2
+ :deps {reagent/reagent {:mvn/version " 1.2.0 " }}
3
3
4
4
:aliases
5
5
{:nextjournal/clerk
6
6
{:extra-paths [" dev" ]
7
7
:extra-deps
8
8
{org.clojure/clojure {:mvn/version " 1.11.1" }
9
9
org.clojure/clojurescript {:mvn/version " 1.11.60" }
10
- org.mentat/clerk-utils {:mvn/version " 0.4.1 " }
10
+ org.mentat/clerk-utils {:mvn/version " 0.6.0 " }
11
11
12
12
io.github.nextjournal/clerk
13
- {:git/sha " fad499407d979916d21b33cc7e46e73f7a485e37 " }
13
+ {:git/sha " 1f6c5331418aaf9c5a4335fc2e6e95f07dc3af6b " }
14
14
io.github.nextjournal/clerk.render
15
15
{:git/url " https://github.com/nextjournal/clerk"
16
- :git/sha " fad499407d979916d21b33cc7e46e73f7a485e37 "
16
+ :git/sha " 1f6c5331418aaf9c5a4335fc2e6e95f07dc3af6b "
17
17
:deps/root " render" }}
18
18
:exec-fn user/build!}
19
19
20
20
:build
21
- {:deps {io.github.clojure/tools.build {:git/tag " v0.8.2 " :git/sha " ba1a2bf " }
21
+ {:deps {io.github.clojure/tools.build {:git/tag " v0.9.4 " :git/sha " 76b78fe " }
22
22
slipset/deps-deploy {:mvn/version " 0.2.0" }}
23
23
:ns-default build}}}
Original file line number Diff line number Diff line change 1
- ^#:nextjournal.clerk
2
- {:toc true
3
- :no-cache true
4
- :visibility :hide-ns }
1
+ ^{:nextjournal.clerk/visibility {:code :hide }}
5
2
(ns mathlive.notebook
3
+ #:nextjournal.clerk {:toc true :no-cache true }
6
4
(:require [mentat.clerk-utils.docs :as docs]
7
5
[mentat.clerk-utils.show :refer [show-sci]]
8
6
[nextjournal.clerk :as clerk]))
9
7
8
+ {::clerk/width :wide }
9
+
10
10
^{::clerk/visibility {:code :hide :result :hide }}
11
11
(clerk/eval-cljs
12
12
; ; These aliases only apply inside this namespace.
13
- '(require '[mathlive.core :as ml])
14
- ' (require '[reagent.core :as reagent]))
13
+ '(do ( require '[mathlive.core :as ml])
14
+ (require '[reagent.core :as reagent]) ))
15
15
16
16
; ; # MathLive.cljs
17
17
; ;
79
79
; ; These are some styles.
80
80
[:style "
81
81
math-field {
82
+ width: 100%;
82
83
font-size: 24px;
83
84
border-radius: 4px;
84
85
border: 1px solid;
@@ -324,10 +325,12 @@ math-field:focus-within {
324
325
; ;
325
326
; ; > The appearance and behavior of the mathfield is highly customizable.
326
327
; ;
327
- ; ; The `Mathfield` instances in this notebook have all been customized with the following styles:
328
+ ; ; The `Mathfield` instances in this notebook have all been customized with the
329
+ ; ; following styles:
328
330
; ;
329
331
; ;```css
330
332
; ; math-field {
333
+ ; ; width: 100%;
331
334
; ; font-size: 24px;
332
335
; ; border-radius: 4px;
333
336
; ; border: 1px solid;
You can’t perform that action at this time.
0 commit comments