[][src]Crate rocco

rocco is a http://ashkenas.com/docco inspired literate programmming library It produces an HTML document that displays your comments intermingled with your code. All prose is passed through Markdown (using comrak), and code is passed through prism.js syntax highlighting.

Rocco has a simple API:

 use rocco::Docco;
 use std::path::PathBuf;

 let input_source = PathBuf::from("tests/samples/source.rs");
 let output = PathBuf::from("source.html");
 let mut docco = Docco::new(input_source, Some(output)).unwrap();
 docco.parse().unwrap();
 docco.render().unwrap();

Structs

Docco
Language
Section