The tooling does two main things: create a valid epub3 skeleton for your content, and build your book into “compatible”, Kobo and Kindle versions. You need to supply the valid XHTML.
There’s more info on the build process at https://news.ycombinator.com/item?id=46469341