docima-0.4.1-prerelease has been yanked.
docima
Generate images at build time for embedding in the Rust documentation.
Warning
The current API is going to evolve a lot while the major version number is 0.
Usage
- First configure your build script to generate the images in the desired path.
They will be encoded as
png→base64and saved asHTMLtags. E.g.:
new
.path
.width
.height
.title
.id
.style
.wrapper
.wrapper_style
.overwrite
.generate?;
- Include your image in the Rust documentation by using the doc attribute and the include_str macro.
- Generate the docs:
Learning
You can refer to the crate documentation and the source code for more complete information and practical examples.