mdbook-svgbob-0.1.1 is not a library.
Svgbob plugin for mdbook
Svgbob-based preprocessor for mdbook transform your ascii diagrams into a svg.
Usage
Prerequisites
Installation
Get latest release:
Or install from the git mirror:
If you want to contribute I recommend to get sources from pj repo:
# install pijul if needed
Integration
Add the preprocessor into your book manifest:
# book.toml
[]
= 8.0
= 16.0
= "bob"
= "arial"
= 14.0
= 2.0
# there's using css-variables from theme:
= "var(--fg)" # see default theme / variables.css
= "transparent" # also useful `var(--bg)`
# all properties are optional.
Then add code-block to some chapter:
```bob
```
That's all. ♥️
For more information about mdbook see mdbook manual, svgbob spec and editor.
Contribution
Contributions are highly appreciated and encouraged! Don't hesitate to participate to discussions in the issues, propose new features and ask for help.
Useful hint for one-command builds crate + book:
- add
command
to the manifest:
# book.toml
[]
= "cargo run --manifest-path /path/to/mdbook-svgbob/Cargo.toml --quiet"
- So then you only need to rebuild the book. Run something like this:
RUST_LOG=mdbook_svgbob=trace