Hacker News new | past | comments | ask | show | jobs | submit login

Does anyone know how to convert these e-book web templates to EPUB? There are a hack lot of Rust books with these templates and it would be great to turn them into epub. There are a couple of FF addons for this but they are just meh.



From the HTML source of the page, this site was made with "mdBook". No link, but a web search finds the source.

On the mdBook site, the official backends produce HTML or Markdown, but community backends offer more perspective. An experimental epub backend exists. https://github.com/rust-lang/mdBook/wiki/Third-party-plugins

A web search gives a public repository for this book, so it should be possible to convert the source of the book into an epub file. https://github.com/rust-lang/book/blob/main/first-edition/sr...


I use the WebToEpub browser extension, it's great and worked very well on the Rustonomicon which uses the same template:

https://github.com/dteviot/WebToEpub

Just make sure to unselect chapters that aren't part of the "book"




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: