Integration for [wavedrom-rs] with [mdbook].
First, install the preprocessor utilizing the [Rust Toolchain].
bash
cargo install mdbook-wavedrom-rs
Then, add the preprocessor to the list of preprocessors in your [mdbook]
configuration file book.toml
.
```toml
[preprocessor.wavedrom] ```
Afterwards, you should be able to add a wavedrom
codeblock, which should
automatically get replaced by a [wavedrom-rs] diagram when building the
[mdbook].
`````markdown
wavedrom
{
signal: [
{ name: "clk", wave: "p......." },
{ name: "pulses", wave: "0..10.10" },
]
}
`````
A WaveDrom skin can be added by adding a path to a skin file in the skin
property.
```toml
[preprocessor.wavedrom] skin = "path/to/skin.json5" ```