A small self-publishing platform for eBooks, suited for the needs of Geeks. Yes, you can use tools like Calibre (free) or Scrivener (commercial) for self-publishing, but geeks want to write their texts as plain-text in an editor they like and (co-)create books via git(hub).
This is published under MIT license.
The tool relies on the following 3rd party tools which you should install into your PATH:
- pandoc
- kindlegen if you want to generate a Kindle eBook. Put the executable into PATH, i.e.
/usr/bin
Optionally, you can also use the following tools:
- Kindle Previewer for previewing the generated .mobi before publishing it
This repository only provides the build environment. Your ebook will be written in another directory outside this directory and should have a special directory layout. You can refer to (and clone) this selfpub-example repository to see how to organize your ebook content like chapters, images, cover image, epub metadata and so on.
Example usage:
cd build
./build.sh /Users/bjoern/Code/selfpub-example de de-selfpub-is-here
The directory /Users/bjoern/Code/selfpub-example is an example ebook directory structure (see example repository which contains all the single chapters of the ebook in markdown format, images and so on. de is the language indicator while de-selfpub-is-here will be the basename of the output files (which generate .epub and .mobi from it).
Theoretically, every output format that's supported by pandoc will be supported, too. The build.sh shell script itself indeed provides the following output formats:
- epub
- kindle/mobi
If you want to contribute, please create a feature branch and open a pull request, or open githu b issues if you want to report bugs.