This is a simple mdbook preprocessor designed to write and evaluate code blocks containing nix expressions to files.
```test-file.nix
builtins.langVersion
```
Code blocks with nix expressions are evaluated.
```nix
builtins.langVersion
```
If you want to use only this preprocessor, install the tool:
sh
cargo install mdbook-nix-eval
Add it as a preprocessor to your book.toml
:
toml
[preprocessor.nix-eval]
command = "mdbook-nix-eval"
renderer = ["html"]
Finally, build your book as normal:
sh
mdbook path/to/book
MPL. See LICENSE.
Copyright (c) 2021 Jason R. McNeil jason@mcneil.dev