mdbook-kubook
prerequisites
- java
- plantum.jar
install mdbook-kubook
$ git clone https://github.com/dltdojo/xidunku.git && cd xidunku\keepku\mdbook-kubook
$ cargo install --path .
book.toml
[preprocessor.kubook]
command = "mdbook-kubook"
renderer = ["html"]
java-path="/usr/bin/java"
plantuml-jar="/usr/local/share/plantuml.jar"
example diagrams
code block with plantumlsvg and plantumltxt
code block lang: plantumlsvg
code block lang: plantumltxt
,-.
`-'
/|\ | ,-.
| +--{ ) ,----. ,----.
/ \ | `-' |Foo3| |Foo4|
Foo1 Foo2 `----' `----'
| To boundary | | |
| --------------> | |
| | | |
| To control | |
| ------------------------------> |
| | | |
| | To entity | |
| ---------------------------------------------->
Foo1 Foo2 ,----. ,----.
,-. | ,-. |Foo3| |Foo4|
`-' +--{ ) `----' `----'
/|\ | `-'
|
/ \
code block lang: plantuml
@startuml
Alice -> Bob : Hello
Bob -> Alice : 你好
@enduml