Skip to content

Commit 30b6750

Browse files
committed
fix highlight setting; tag 0.0.3
1 parent fbd45f4 commit 30b6750

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

calcit.cirru

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{} (:package |docs-workflow)
33
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!)
44
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/
5-
:version |0.0.2
5+
:version |0.0.3
66
:entries $ {}
77
:files $ {}
88
|docs-workflow.comp.container $ {}
@@ -151,7 +151,7 @@
151151
js-object (:html false) (:breaks true)
152152
:highlight $ fn (code lang)
153153
if (= lang "\"cirru") (color/generate code)
154-
.-value $ .!highlightAuto hljs code lang
154+
.-value $ .!highlightAuto hljs code (js-array lang)
155155
|comp-page-entries $ quote
156156
defcomp comp-page-entries (selected parent-path entries on-select)
157157
div
@@ -270,6 +270,7 @@
270270
"\"highlight.js" :default hljs
271271
"\"highlight.js/lib/languages/bash" :default bash-lang
272272
"\"highlight.js/lib/languages/clojure" :default clojure-lang
273+
"\"highlight.js/lib/languages/rust" :default rust-lang
273274
:defs $ {}
274275
|render-app! $ quote
275276
defn render-app! () $ render! mount-target (comp-container @*reel schema/docs) dispatch!
@@ -282,7 +283,7 @@
282283
|*reel $ quote
283284
defatom *reel $ -> reel-schema/reel (assoc :base schema/store) (assoc :store schema/store)
284285
|main! $ quote
285-
defn main! () (.!registerLanguage hljs "\"clojure" clojure-lang) (.!registerLanguage hljs "\"bash" bash-lang)
286+
defn main! () (.!registerLanguage hljs "\"clojure" clojure-lang) (.!registerLanguage hljs "\"bash" bash-lang) (.!registerLanguage hljs "\"rust" rust-lang)
286287
println "\"Running mode:" $ if config/dev? "\"dev" "\"release"
287288
if config/dev? $ load-console-formatter!
288289
render-app!

docs/guide.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@ println "|a demo of code"
1111
defn f1 ()
1212
+ 1 2 4
1313
```
14+
15+
```clojure
16+
(+ 1 2)
17+
```
18+
19+
```rust
20+
fn main() -> i64 {
21+
1
22+
}
23+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.2",
2+
"version": "0.0.3",
33
"dependencies": {
44
"@calcit/procs": "^0.5.28"
55
},

0 commit comments

Comments
 (0)