Skip to content
No description, website, or topics provided.
Rust Makefile
Branch: master
Clone or download
Latest commit 8274177 Nov 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src readme Oct 31, 2019
.gitignore first Oct 29, 2019
Cargo.toml minor readme changes Nov 1, 2019
LICENSE add license Oct 31, 2019
Makefile working Oct 30, 2019
Readme.md spelling Nov 5, 2019
sample_0.generated.svg readme update Oct 31, 2019

Readme.md

mdBook Graphviz

crates.io LICENSE

Install

cargo install mdbook-graphviz

Install Graphviz

brew install graphviz

book.toml

[preprocessor.graphviz]
command = "mdbook-graphviz"

Usage

Just dot is supported, but any of the other graphviz tools would be easy to add.

Mark A dot Code Block For Processing

Input

```dot process
digraph {
    processed -> graph
}
```

Output

![](chapter_0.generated.svg)

Rendered

Add A Name For Your Graph

Input

```dot process Named Graph
digraph {
    processed -> graph
}
```

Output

![](chapter_named_graph_0.generated.svg, "Named Graph")

Rendered

dot Code Blocks Without The process Flag Are Ignored

Input

```dot
digraph {
    processed -> graph
}
```

Output

```dot
digraph {
    processed -> graph
}
```

.gitignore

The generated svg files are output into the book src folder for now, this .gitignore should cover them

*.generated.svg
You can’t perform that action at this time.