-
Notifications
You must be signed in to change notification settings - Fork 23
Bookshop Basics
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 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
Introduction to ERB http://www.stuartellis.eu/articles/erb/