Code Monkey home page Code Monkey logo

asciidoctor-book-template's Introduction

Asciidoctor Book Template

A book template to generate html, pdf, epub, mobi format ebook by Asciidoctor.

Usage

Download this repo:

$ git clone https://github.com/chloerei/asciidoctor-book-template.git bookname
$ cd bookname

Install gems:

$ bundle install

Download fonts for PDF generate (run once):

$ asciidoctor-pdf-cjk-kai_gen_gothic-install

Build books:

$ rake build

Result will be store in build dir:

$ tree build
build/
|-- book
|   |-- book-0.1.0
|   |   |-- images
|   |   |   |-- cover.png
|   |   |   `-- cover.svg
|   |   `-- index.html
|   |-- book-0.1.0.epub
|   |-- book-0.1.0-kf8.epub
|   |-- book-0.1.0.mobi
|   |-- book-0.1.0.pdf
|   `-- book-0.1.0.pdfmarks
`-- book-sample
    |-- book-sample-0.1.0
    |   |-- images
    |   |   |-- cover.png
    |   |   `-- cover.svg
    |   `-- index.html
    |-- book-sample-0.1.0.epub
    |-- book-sample-0.1.0-kf8.epub
    |-- book-sample-0.1.0.mobi
    |-- book-sample-0.1.0.pdf
    `-- book-sample-0.1.0.pdfmarks

Customize

Filename

By default, there are two build source: book.adoc and boo-sample.adoc. It is suitable for separate formal and sample version. When source filename is book.adoc, build task will generate ebooks in build/book directory.

You can change filename, add or remove source, then change SOURCES in Rakefile to change build source.

Rakefile
SOURCES = %w(book.adoc book-sample.adoc)

asciidoctor-book-template's People

Contributors

chloerei avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.