Check if you have everything installed properly for local generation with
$ git scribe check
asciidoc - ok
xsltproc - ok
a2x - ok
highlighting - ok
fop - ok
$ brew install asciidoc source-highlight fop
$ brew install https://gist.github.com/raw/4064648/kindlegen.rb
If you are on Ubuntu, you can install the dependencies with apt-get:
$ sudo apt-get install asciidoc
$ sudo apt-get install source-highlight
$ sudo apt-get install fop
Initialize a new book with
$ git scribe init <directory name>
This will set up the outline for your book. All the book content goes into the book subdirectory with book.asc as the starting point. If you want to split the writing up into multiple files you can simply include them in the book.asc file. The generated files have an example of this.
Then you can generate your book content with the git scribe gen command:
$ git scribe gen [site|html|pdf|epub|mobi|all]
Eventually, simply pushing to GitHub will take care of this for you.
See SPEC.asciidoc for what this file should look like eventually.
If you want to hack on this, fork it, improve it and send me a pull request.
To get started using it, just clone it and call the ./bin/git-scribe script directly from either the
example subdir or your own book directory. If you add a feature, make sure it’s included in the example subdirectory so I can test it out.