diff --git a/calcit.cirru b/calcit.cirru index b944fd6..f996eaf 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -1113,7 +1113,10 @@ |T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646493878817) (:text |hljs) |h $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646493819896) (:text |code) |D $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494093763) (:text |.!highlightAuto) - |l $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494161183) (:text |lang) + |l $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1648712633823) + :data $ {} + |T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494161183) (:text |lang) + |D $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1648712636605) (:text |js-array) |e $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1646492231134) :data $ {} |T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646492232743) (:text |:breaks) @@ -1830,6 +1833,11 @@ |v $ {} (:type :expr) (:by |root) (:at 1507399680857) :data $ {} |j $ {} (:type :leaf) (:by |root) (:at 1518156292092) (:text |listen-devtools!) + |zP $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1646494001394) + :data $ {} + |T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1648712651808) (:text "|\"highlight.js/lib/languages/rust") + |b $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494001394) (:text |:default) + |h $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1648712653714) (:text |rust-lang) |yr $ {} (:type :expr) (:by |root) (:at 1507399683930) :data $ {} |j $ {} (:type :leaf) (:by |root) (:at 1507399687162) (:text |reel.core) @@ -1957,6 +1965,12 @@ |b $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494015483) (:text "|\"bash") |h $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494015483) (:text |bash-lang) |D $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494029494) (:text |.!registerLanguage) + |sj $ {} (:type :expr) (:by |rJG4IHzWf) (:at 1646494015483) + :data $ {} + |T $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494026927) (:text |hljs) + |b $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1648712660426) (:text "|\"rust") + |h $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1648712658907) (:text |rust-lang) + |D $ {} (:type :leaf) (:by |rJG4IHzWf) (:at 1646494029494) (:text |.!registerLanguage) |yD $ {} (:type :expr) (:by |root) (:at 1507461684494) :data $ {} |T $ {} (:type :leaf) (:by |root) (:at 1507461739167) (:text |listen-devtools!) @@ -2191,5 +2205,5 @@ :data $ {} :configs $ {} (:port 6001) (:storage-key |calcit.cirru) (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) :modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/ - :version |0.0.2 + :version |0.0.3 :entries $ {} diff --git a/compact.cirru b/compact.cirru index 805a780..6de69a2 100644 --- a/compact.cirru +++ b/compact.cirru @@ -2,7 +2,7 @@ {} (:package |docs-workflow) :configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) :modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/ - :version |0.0.2 + :version |0.0.3 :entries $ {} :files $ {} |docs-workflow.comp.container $ {} @@ -151,7 +151,7 @@ js-object (:html false) (:breaks true) :highlight $ fn (code lang) if (= lang "\"cirru") (color/generate code) - .-value $ .!highlightAuto hljs code lang + .-value $ .!highlightAuto hljs code (js-array lang) |comp-page-entries $ quote defcomp comp-page-entries (selected parent-path entries on-select) div @@ -270,6 +270,7 @@ "\"highlight.js" :default hljs "\"highlight.js/lib/languages/bash" :default bash-lang "\"highlight.js/lib/languages/clojure" :default clojure-lang + "\"highlight.js/lib/languages/rust" :default rust-lang :defs $ {} |render-app! $ quote defn render-app! () $ render! mount-target (comp-container @*reel schema/docs) dispatch! @@ -282,7 +283,7 @@ |*reel $ quote defatom *reel $ -> reel-schema/reel (assoc :base schema/store) (assoc :store schema/store) |main! $ quote - defn main! () (.!registerLanguage hljs "\"clojure" clojure-lang) (.!registerLanguage hljs "\"bash" bash-lang) + defn main! () (.!registerLanguage hljs "\"clojure" clojure-lang) (.!registerLanguage hljs "\"bash" bash-lang) (.!registerLanguage hljs "\"rust" rust-lang) println "\"Running mode:" $ if config/dev? "\"dev" "\"release" if config/dev? $ load-console-formatter! render-app! diff --git a/docs/guide.md b/docs/guide.md index fbbb5ad..fea84d3 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -11,3 +11,13 @@ println "|a demo of code" defn f1 () + 1 2 4 ``` + +```clojure +(+ 1 2) +``` + +```rust +fn main() -> i64 { + 1 +} +``` diff --git a/package.json b/package.json index f455c15..2d4db58 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.0.2", + "version": "0.0.3", "dependencies": { "@calcit/procs": "^0.5.28" },