Although it's quite possible for you to import
mdbook as a library and
provide your own renderer, there are two main renderer implementations that
99% of users will ever use:
fn render(&self, ctx: &RenderContext) -> Result<()>
Renderer, passing in all the necessary information for
describing a book.