With Ulysses for iPad, iPhone or Mac you can write and self-publish e-books. Follow the link below to read a short guide. The secret sauce is being able to export your text and picures to ePub format. Ulysses does that.
In the guide you are taught how to publish to the iBook store via a Mac, but once you have your ePub file or PDF you can publish it anywhere you like.