Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Publish on iPad and iPhone
Baker allows you to publish on the iPad, but if you want to you might want to publish on the iPhone only, or both of them. Doing this is quite simple and requires only two steps.
Switch the project to the mode you want
From Xcode click to:
- The Baker project in the Project navigator (the top level blue icon)
- The application Target in the second column that appears there
- Select the "Summary" tab
There you can select under iOS Application Target the target Device, between:
This option defines on which kind of device the application will run.
Build the book with Media Queries
Then you have to build the book in order for it to work on the specific device. If you are building for only one device is simple, you just have to prepare the HTML pages to work at that screen size.
One of the best ways to approach this is to use techniques that falls under the umbrella of Responsive Design.
Here some tutorials:
NOTE: this technique will work also if you want to publish additionally your book on the web itself.