Initial commit

This commit is contained in:
Alex Cabal 2018-12-29 15:21:19 -06:00
commit 28c8a3f0ba
136 changed files with 13350 additions and 0 deletions

View file

@ -0,0 +1,79 @@
<?
require_once('Core.php');
?><?= Template::Header(['title' => 'A Basic Standard Ebooks Source Folder', 'highlight' => 'contribute', 'description' => 'All Standard Ebooks source folders have the same basic structure, described here.']) ?>
<main>
<article id="a-basic-standard-ebooks-source-folder">
<h1>A Basic Standard Ebooks Source Folder</h1>
<section>
<p>All Standard Ebooks source folders have the same basic structure. It looks a little like this:</p>
<figure>
<img alt="A tree view of a new Standard Ebooks draft folder" src="/images/epub-draft-tree.png">
</figure>
<ul>
<li>
<p><code class="path">dist/</code> is where our <code class="program">build</code> script will put the finished ebook files. Right now its empty.</p>
</li>
<li>
<p><code class="path">images/</code> contains the raw image files used in an ebook. For ebooks without illustrations, youll have the following three files:</p>
<ul>
<li>
<p><code class="path">images/cover.svg</code>, the raw cover image complete with title and author.</p>
</li>
<li>
<p><code class="path">images/titlepage.svg</code>, the raw titlepage image.</p>
</li>
<li>
<p><code class="path">images/cover.source.jpg</code>, not pictured; the raw, high-resolution artwork weve picked as the cover image background, kept here for future reference but not actually used in the final epub file.</p>
</li>
<li>
<p><code class="path">images/cover.jpg</code>, not pictured; the scaled-down version of <code class="path">cover.source.jpg</code> that will be referenced by <code class="path">cover.svg</code> and included in the final epub file.</p>
</li>
</ul>
</li>
<li>
<p><code class="path">src/</code> contains the actual source of the epub. This is the folder thatll be zipped up as the final epub file, and where the bulk of our work will happen.</p>
<ul>
<li>
<p><code class="path">src/META-INF/</code>, <code class="path">src/META-INF/container.xml</code>, and <code class="path">src/mimetype</code> are required by the epub spec; dont edit them.</p>
</li>
<li>
<p><code class="path">src/epub/css/</code> contains the CSS files used in the epub.</p>
<ul>
<li>
<p><code class="path">src/epub/css/core.css</code> is the common CSS file used across all Standard Ebooks; dont edit it.</p>
</li>
<li>
<p><code class="path">src/epub/css/local.css</code> is the CSS file that contains styles for this specific ebook. This is the one youll be editing, <em>if necessary</em>. Not all ebooks need custom CSS—the less custom CSS, the better!</p>
</li>
</ul>
</li>
<li>
<p><code class="path">src/epub/images/</code> contains the images used in the final epub. Right now it contains the Standard Ebooks logo file used in the colophon; dont edit the logo. Once youve finished the cover and titlepage images in <code class="path">./images/</code>, the <code class="program">build-images</code> script will compile them and put them here.</p>
</li>
<li>
<p><code class="path">src/epub/text/</code> is the meat and potatoes of the ebook! Youll place the source XHTML files here, alongside the templates the draft script created for you:</p>
<ul>
<li>
<p><code class="path">src/epub/text/colophon.xhtml</code> is the template for the Standard Ebooks colophon that appears at the end of every ebook. Usually youll edit this last, once youve finalized the cover page and metadata.</p>
</li>
<li>
<p><code class="path">src/epub/text/titlepage.xhtml</code> is the template for the titlepage. The only thing to edit here is the title and author in the titlepage <code class="html">alt</code> attribute. Leave the rest alone.</p>
</li>
<li>
<p><code class="path">src/epub/text/unlicense.xhtml</code> is the Standard Ebooks public domain dedication. Dont edit this at all.</p>
</li>
</ul>
</li>
<li>
<p><code class="path">src/epub/content.opf</code> is the file that contains all of the epubs metadata. Youll be editing this heavily.</p>
</li>
<li>
<p><code class="path">src/epub/onix.xml</code> is a file containing accessibility information. Dont edit this.</p>
</li>
</ul>
</li>
</ul>
</section>
</article>
</main>
<?= Template::Footer() ?>