This isn't a direct solution for you since your material is already in HTML. But LeanPub[1] is one simple way to get ebooks. You write in Markdown, and they produce pdf, epub and mobi formats.
[1]: https://leanpub.com
[1]: https://leanpub.com
No comments yet.