rust-for-dotnet-devs icon indicating copy to clipboard operation
rust-for-dotnet-devs copied to clipboard

Render the book to PDF with `mdbook-pandoc`

Open simonsan opened this issue 11 months ago • 1 comments

Hey there, @max-heller was a great help to comprehensive-rust and rust-patterns as they helped us set up rendering to PDF.

mdbook-pandoc has some pre-rendered examples in also of Rust-by-example and the book: https://github.com/max-heller/mdbook-pandoc?tab=readme-ov-file#rendered-books

  • Comprehensive Rust: https://google.github.io/comprehensive-rust/comprehensive-rust.pdf

  • Rust Design Patterns: https://rust-unofficial.github.io/patterns/rust-design-patterns.pdf

Some Resources

  • Initial support PR: https://github.com/rust-unofficial/patterns/pull/394

  • Adding download icon to menu bar: https://github.com/rust-unofficial/patterns/commit/d96de404c45f17310c3eb77b4669d715ce923d33

  • Line wrapping in code blocks: https://github.com/rust-unofficial/patterns/commit/3dd157b9d751e2a5a391b2933ae6eb8467ea1eaf

  • Readme of mdbook-pandoc: https://github.com/max-heller/mdbook-pandoc?tab=readme-ov-file#getting-started

simonsan avatar Mar 19 '24 12:03 simonsan

@simonsan This is tremendous and thank you for all the info and links that could help with rendering a PDF version.

atifaziz avatar Mar 19 '24 20:03 atifaziz