Commits

Paul Craven committed 64ce7b2

Add instructions.

Comments (0)

Files changed (1)

chapters/02_title2/index.php

-<?php chapter('What is a Computer Language?'); ?>
+<?php chapter('Instructions'); ?>
+<?php section('How Does This Book/Web Framework Work?'); ?>
+
+<?php subsection('Webpage'); ?>
+<p>To get started:
+<ol>
+<li>Install a web server/PHP combo. EasyPHP works great for dev machines.
+<li>Place this directory in the EasyPHP directory you choose to serve files from.
+<li>Confirm you can serve files ok. Adjust Chapters 1 and 2 as needed.
+<li>Point to more chapters by adjusting <kbd>common.php</kbd>.
+<li>Customize with .css files.
+</ol>
+
+<?php subsection('Paper Book'); ?>
+<p>To create a book:
+<ol>
+<li>Install a LaTeX tool like MikTex
+<li>Adjust the near-last line of <kbd>latex.php</kbd> to get the file contents from the proper URL. Keep the parameters of the URL that pull the whole book.
+<li>Open up a command prompt and change to the root directory of the book.
+<li>Run <kbd>build.sh</kbd>
+<li>A file <kbd>latex/book_template.pdf</kbd> should be generated.
+<li>Customize with <kbd>book_template.tex</kbd>
+</ol>
+
+<p>To publish use a company that takes a PDF like CreateSpace and allows you to publish.
+
+<?php subsection('E-Book'); ?>
+<p>To create an e-book:
+<ol>
+<li>Open a URL like http://localhost/webbookframework/index.php?chapter=A&lang=en&is_book&is_ebook&wholebook in chrome.
+<li>Save as a whole complete webpage.
+<li>Use a tool like kindlegen to create e-book.
+<li>Cusomize with ebook.css
+</ol>
+
+<?php section('Unrelated'); ?>
 
 <p>In the early days, switches were used to load ones or zeros into
 computer memory. Figure <?php ref_figure('fig.altair'); ?>, <a href="http://en.wikipedia.org/wiki/File:Altair_Computer_Front_Panel.jpg">courtesy of Wikimedia Commons</a>,