Pages

Monday, 2 January 2017

用akashacms-cli生成epub电子书

Leveraging AkashaCMS's ability to render HTML files, AkashaEPUB provides tools for building EPUB 3 documents.
Do you want to write an electronic book while using light-weight open source tools? Maybe you're a programmer and are more comfortable in a programmers editor than in a Word Processor. Maybe you prefer Markdown for writing e-books, or you don't like the HTML that's exported out of word processors. Maybe you want a simple lightweight low cost eBook publishing system. Whatever the reason, the typical method for writing an e-book (MS Word or Libre Office or Pages) isn't for everyone. Some of us like lightweight plain text editors.
What AkashaCMS does for building websites, AkashaEPUB does for electronic books. It produces EPUB documents from the same input files you'd use in an AkashaCMS website. That means being able to write your book using Markdown, for ease of writing, and use a simplified description of e-book structure and metadata in the config.js file to round out the eBook publishing process.
See https://github.com/akashacms/epub-guide for a complete book, buildable with AkashaEPUB, which describes how to build EPUB books using AkashaEPUB. That git repository is a working example which shows what to do, and https://github.com/akashacms/epub-skeleton is another repository containing a book skeleton you can use as a starting point.
The guide is available for purchase via the following eBook markets: Amazon.COM, Scribd, the Google Play store, and the Apple iBooks store.

Quick start:
Install AkashaCMS and Grunt:
    $ sudo npm install -g akashacms-cli
    $ sudo npm install -g grunt-cli
 
Then install the epub-guide and epub-skeleton, and build the books
    $ git clone https://github.com/akashacms/epub-guide.git
    $ cd epub-guide
    $ npm install
    $ grunt doepub
 
Then for the skeleton
    $ git clone https://github.com/akashacms/epub-skeleton.git
    $ mv epub-skeleton newBookName
    $ cd newBookName
    $ npm install
    $ grunt doepub 
 
from http://akashacms.com/plugins/epub.html 

相关帖子:http://briteming.blogspot.jp/2014/02/linux-vpsnodejs-akashacms.html