Skip to content

How to package an HPub

folletto edited this page Feb 11, 2013 · 11 revisions

 

First of all, as a reminder, a HPub publication is like a HTML5 microsite. You should be able to see it in a standard browser and test it in Mobile Safari (it will miss the pagination and Baker features of course, but it should work).

 

Package

When your publication is ready, you have to wrap it up into a nice package to include it in Baker.

  • Create a folder called "book" and copy all your book files into that. All the HTML files and book assets must be in the "book" folder, no file outside the folder will be seen by Baker.
  • Create a file called "book.json", with all the parameters required for Baker to display your book correctly. This file is known as a manifest and it must conform to the HPub standard. Here you'll find a complete explanation of all the parameters available.

After these simple steps are completed, your "book" folder will contain an HPub package, ready to be baked into an app!

 

BONUS: as you may have noticed, the HPub package is just a list of HTML pages. This means that, once you make sure all the pages are linked to each other, you can publish it on the web without any additional work and your users will be able to view it in a standard browser.