https://github.com/SystemsApproach/book
There are instructions in the README to build epub, html and other formats (including a giant manpage).