This small Ruby script uses pandoc to convert The Rust Programming Language (compilation of the Rust guides) to epub.
- Install pandoc
- Copy
trpl-epub.rb
file torust/src/doc/trpl
(assuming your clone of the Rust repository is inrust/
) - Execute with
ruby make-epub.rb
. - There should be two new files:
_all.md
(combined and reformatted markdown, for debugging) andall.epub
(the file you want). - Profit!