.. _help_compile: Compile and export ================== Compile builds a downloadable **HTML site zip** and/or **EPUB 3** book from the current manuscript using the **book** profile. DOCX is planned but not enabled yet. Open Compile ------------ From the Project ribbon, choose **Compile**. * Check **HTML site zip** and/or **EPUB**. * While the dialog is open, the binder shows **include checkboxes** on sections, chapters, scenes, and front/back matter. Everything starts selected; uncheck items to omit them from this run. * **Compile options…** prefills fields from project Export settings (title, content note, dedication, copyright, imprint, cover/logo paths). Edits here apply to **this compile only** and are not written back to project settings unless you save them under Export. * **Reset EPUB front matter templates** restores the stock files under ``export/templates/epub/front_matter/`` (after confirm). Start the job; progress updates until it finishes, then download the artifact. One target downloads that file; both targets download a wrapper zip containing the HTML archive and the ``.epub``. What the HTML zip contains -------------------------- * A generated ``index.html`` (title, author, content note, front matter, table of contents, copyright/imprint) * One HTML file per chapter (scenes concatenated; scene titles omitted by default; scene breaks preserved) * Back-matter scenes as pages after the chapters * CSS, the WOFF2 fonts actually used, and referenced images Unzip the archive and open ``index.html`` in a browser, or host the folder as a static site. What the EPUB contains ---------------------- EPUB front matter is laid out more like a print book than the HTML index page. Typical spine (empty pages are omitted): * Cover (from the project **cover image**, when set) * Title page (book title and author) * Copyright / imprint / colophon (centered) * Dedication (centered) * Content note (centered) * Binder front-matter scenes (one document each) * Table of contents (``nav.xhtml``) * Chapters, then back-matter scenes Fonts and images used in the book are embedded. EPUB uses mono emoji fonts for broad reader compatibility; HTML export can embed color emoji when configured. Text color CSS in EPUB follows the **Include font colors in docx / epub** Export setting (HTML always includes color CSS). Open the ``.epub`` in an e-reader or library app (Apple Books, Calibre, Thorium, Kindle after conversion, and similar). Comments and placeholders ------------------------- Comments are stripped. Closed ``<$…>`` placeholders and template variables are expanded. Glossary placeholders can inject Story Bible glossaries when cards are marked for inclusion. Templates --------- * **HTML:** editable pack under ``export/templates/book/`` * **EPUB:** editable pack under ``export/templates/epub/``, including ``front_matter/`` page templates (title, copyright, dedication, content note, cover) Advanced template editing is optional; stock defaults are enough for a first compile. Use Compile options → **Reset EPUB front matter templates** to restore only the EPUB front-matter files after experiments. After download -------------- Compiled packages are **reader-facing** artifacts. They are not a substitute for keeping your RubyQuill project backups (:ref:`help_backup`).