Skip to content
blueheadpublishing edited this page Jun 2, 2012 · 8 revisions
$ bookshop new demo     # creates a new bookshop project called "demo"

cd to demo/

$ bookshop build all    # builds the pdf, epub, mobi, and html versions of the demo book

The Bookshop Framework

The default directory structure of a generated bookshop project:

|-- book/                 # Source files for your book
    |--book.html.erb      # The master file
    |--frontmatter/       # Content at the front of the book (cover, title, preface, etc.)
    |--bodymatter/        # Main content of book (chapters, sections, etc.)
    |--backmatter/        # Content at the back of the book (appendix, index, etc.)
    |--assets/
        |--css/
            |--stylesheet.css
        |--images/
        |--js/
    |--epub/              # epub specific files and contents
        |--META-INF/
        |--mimetype
        |--OEBPS/
            |--content.opf.erb
            |--toc.ncx.erb

|-- builds/               # All the builds are created here
    |--epub/
    |--html/
    |--mobi/
    |--pdf/

|-- config/               # Your config and data settings
    |--book.yml           # Settings/Data for your book

Ruby/ERB, Import, and Other Helpers

Introduction to ERB http://www.stuartellis.eu/articles/erb/

Home Page

Bookshop Basics

  • Quick Demo - Publishing in Two Steps
  • The Bookshop Framework
  • Ruby/ERB, Importing and Code Helpers
Clone this wiki locally