Skip to content

Commit

Permalink
ran script and added new files
Browse files Browse the repository at this point in the history
  • Loading branch information
nadamsoreilly committed Jan 10, 2019
0 parents commit bb58760
Show file tree
Hide file tree
Showing 89 changed files with 342 additions and 0 deletions.
52 changes: 52 additions & 0 deletions atlas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"branch": "master",
"files": [
"titlepage.html",
"copyright.html",
"toc.html",
"preface.asciidoc",
"ch01.asciidoc",
"author_bio.html"
],
"formats": {
"pdf": {
"version": "web",
"color_count": "1",
"index": false,
"toc": true,
"syntaxhighlighting": true,
"show_comments": false,
"trim_size": "7inx9.1875in",
"antennahouse_version": "AHFormatterV62_64-MR4"
},
"epub": {
"index": false,
"toc": true,
"epubcheck": true,
"syntaxhighlighting": true,
"show_comments": false,
"downsample_images": false,
"mathmlreplacement": false
},
"mobi": {
"index": false,
"toc": true,
"syntaxhighlighting": true,
"show_comments": false,
"downsample_images": false
},
"html": {
"index": false,
"toc": true,
"syntaxhighlighting": true,
"show_comments": false,
"consolidated": false
}
},
"theme": "oreillymedia/animal_theme_sass",
"title": "Enterprise Architecture Patterns with Python",
"print_isbn13": "9781492052203",
"lang": "en",
"accent_color": "",
"templating": true
}
4 changes: 4 additions & 0 deletions author_bio.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<section data-type="colophon" class="abouttheauthor">
<h1>About the Author(s)</h1>
<p>John Doe does some interesting stuff...</p>
</section>
Binary file added callouts/1.pdf
Binary file not shown.
Binary file added callouts/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/10.pdf
Binary file not shown.
Binary file added callouts/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/11.pdf
Binary file not shown.
Binary file added callouts/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/12.pdf
Binary file not shown.
Binary file added callouts/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/13.pdf
Binary file not shown.
Binary file added callouts/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/14.pdf
Binary file not shown.
Binary file added callouts/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/15.pdf
Binary file not shown.
Binary file added callouts/15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/16.pdf
Binary file not shown.
Binary file added callouts/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/17.pdf
Binary file not shown.
Binary file added callouts/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/18.pdf
Binary file not shown.
Binary file added callouts/18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/19.pdf
Binary file not shown.
Binary file added callouts/19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/2.pdf
Binary file not shown.
Binary file added callouts/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/20.pdf
Binary file not shown.
Binary file added callouts/20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/21.pdf
Binary file not shown.
Binary file added callouts/21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/22.pdf
Binary file not shown.
Binary file added callouts/22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/23.pdf
Binary file not shown.
Binary file added callouts/23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/24.pdf
Binary file not shown.
Binary file added callouts/24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/25.pdf
Binary file not shown.
Binary file added callouts/25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/26.pdf
Binary file not shown.
Binary file added callouts/26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/27.pdf
Binary file not shown.
Binary file added callouts/27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/28.pdf
Binary file not shown.
Binary file added callouts/28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/29.pdf
Binary file not shown.
Binary file added callouts/29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/3.pdf
Binary file not shown.
Binary file added callouts/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/30.pdf
Binary file not shown.
Binary file added callouts/30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/31.pdf
Binary file not shown.
Binary file added callouts/31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added callouts/32.pdf
Binary file not shown.
Binary file added callouts/32.png
Binary file added callouts/33.pdf
Binary file not shown.
Binary file added callouts/33.png
Binary file added callouts/34.pdf
Binary file not shown.
Binary file added callouts/34.png
Binary file added callouts/35.pdf
Binary file not shown.
Binary file added callouts/35.png
Binary file added callouts/36.pdf
Binary file not shown.
Binary file added callouts/36.png
Binary file added callouts/37.pdf
Binary file not shown.
Binary file added callouts/37.png
Binary file added callouts/38.pdf
Binary file not shown.
Binary file added callouts/38.png
Binary file added callouts/39.pdf
Binary file not shown.
Binary file added callouts/39.png
Binary file added callouts/4.pdf
Binary file not shown.
Binary file added callouts/4.png
Binary file added callouts/5.pdf
Binary file not shown.
Binary file added callouts/5.png
Binary file added callouts/6.pdf
Binary file not shown.
Binary file added callouts/6.png
Binary file added callouts/7.pdf
Binary file not shown.
Binary file added callouts/7.png
Binary file added callouts/8.pdf
Binary file not shown.
Binary file added callouts/8.png
Binary file added callouts/9.pdf
Binary file not shown.
Binary file added callouts/9.png
10 changes: 10 additions & 0 deletions colo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<section id="colophon" data-type="colophon">
<h1>Colophon</h1>

<p>The animal on the cover of <em>FILL IN TITLE</em> is <em>FILL IN DESCRIPTION</em>.</p>

<p>Many of the animals on O'Reilly covers are endangered; all of them are important to the world. To learn more about how you can help, go to <a href="http://animals.oreilly.com">animals.oreilly.com</a>.</p>

<p>The cover image is from <em>FILL IN CREDITS</em>. The cover fonts are URW Typewriter and Guardian Sans. The text font is Adobe Minion Pro; the heading font is Adobe Myriad Condensed; and the code font is Dalton Maag's Ubuntu Mono.</p>

</section>
111 changes: 111 additions & 0 deletions copyright.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<section data-type='copyright-page' xmlns='http://www.w3.org/1999/xhtml'>
<h1>Enterprise Architecture Patterns with Python</h1>
<p class='author'>
by
<span class='firstname'>Harry </span>
<span class='surname'>Percival</span>
and
<span class='firstname'>Bob </span>
<span class='surname'>Gregory</span>
</p>
<p class='copyright'>Copyright © FILL IN YEAR O&apos;Reilly Media. All rights reserved.</p>
<p class='printlocation'>Printed in the United States of America.</p>
<p class='publisher'>
Published by
<span class='publishername'>O&apos;Reilly Media, Inc.</span>
, 1005 Gravenstein Highway North, Sebastopol, CA 95472.
</p>
<p>
O&apos;Reilly books may be purchased for educational, business, or sales
promotional use. Online editions are also available for most titles (
<a href='http://oreilly.com/safari'>http://oreilly.com/safari</a>
). For more information, contact our corporate/institutional sales
department: 800-998-9938 or
<span data-type='email'>[email protected]</span>
.
</p>
<ul class='stafflist'>
<li>
<span class='staffrole'>Editors:</span>
Chris Guzikowski and Eleanor Bru
</li>
<li>
<span class='staffrole'>Production Editor:</span>
FILL IN PRODUCTION EDITOR
</li>
<li>
<span class='staffrole'>Copyeditor:</span>
FILL IN COPYEDITOR
</li>
<li>
<span class='staffrole'>Proofreader:</span>
FILL IN PROOFREADER
</li>
<li>
<span class='staffrole'>Indexer:</span>
FILL IN INDEXER
</li>
<li>
<span class='staffrole'>Interior Designer:</span>
David Futato
</li>
<li>
<span class='staffrole'>Cover Designer:</span>
Karen Montgomery
</li>
<li>
<span class='staffrole'>Illustrator:</span>
Rebecca Demarest
</li>
</ul>
<ul class='printings'>
<li>
<span class='printedition'>March 2020:</span>
First Edition
</li>
</ul>
<!--Add additional revdate spans below as needed.-->
<div>
<h1 class='revisions'>Revision History for the First Edition</h1>
<ul class='releases'>
<li>
<span class='revdate'>YYYY-MM-DD:</span>
First Release
</li>
</ul>
</div>
<p class='errata'>
See
<a href='http://oreilly.com/catalog/errata.csp?isbn=9781492052203'>http://oreilly.com/catalog/errata.csp?isbn=9781492052203</a>
for release details.
</p>
<div class='legal'>
<p>
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Enterprise Architecture Patterns with Python, the cover image, and related
trade dress are trademarks of O’Reilly Media, Inc.
</p>
<p>
The views expressed in this work are those of the author(s), and do not
represent the publisher&apos;s views. While the publisher and the
author(s) have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the
author(s) disclaim all responsibility for errors or omissions, including
without limitation responsibility for damages resulting from the use of or
reliance on this work. Use of the information and instructions contained
in this work is at your own risk. If any code samples or other technology
this work contains or describes is subject to open source licenses or the
intellectual property rights of others, it is your responsibility to
ensure that your use thereof complies with such licenses and/or rights.
<!--PROD: Uncomment the following sentence if appropriate and add it to the
above para:-->
<!--This book is not intended as [legal/medical/financial; use the appropriate
reference] advice. Please consult a qualified professional if you
require [legal/medical/financial] advice.-->
</p>
</div>
<div class='copyright-bottom'>
<p class='isbn'>978-1-492-05220-3</p>
<p class='printer'>[FILL IN]</p>
</div>
</section>
2 changes: 2 additions & 0 deletions ix.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!-- This is a placeholder element for use with the automatic index generation option in Atlas -->
<section data-type="index"/>
15 changes: 15 additions & 0 deletions theme/epub/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ doctype }}
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="publisher" content="O'Reilly Media, Inc."/>
<meta name="author" content="AUTHOR NAMES HERE"/>
<meta name="date" content="RETAIL AVAILABILITY DATE FROM PDB MANUFACTURING TAB HERE IN YYYY-MM-DD FORM (e.g., 2014-07-07)"/>
<meta name="description" content="BOOK MARKETING DESCRIPTION HERE. (This can be supplied by the author, but otherwise the Consumer Short Text from the Marketing tab in the PDB works here - just make sure not to paste curly quotes or em dashes! Replace with straight quotes and hyphens.)"/>
<meta name="identifier" content="TECH-BOOK-ISBN-13"/>
<title>{{ title }}</title>
</head>
<body data-type="book">
{{ content }}
</body>
</html>
15 changes: 15 additions & 0 deletions theme/mobi/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ doctype }}
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="publisher" content="O'Reilly Media, Inc."/>
<meta name="author" content="AUTHOR NAMES HERE"/>
<meta name="date" content="RETAIL AVAILABILITY DATE FROM PDB MANUFACTURING TAB HERE IN YYYY-MM-DD FORM (e.g., 2014-07-07)"/>
<meta name="description" content="BOOK MARKETING DESCRIPTION HERE. (This can be supplied by the author, but otherwise the Consumer Short Text from the Marketing tab in the PDB works here - just make sure not to paste curly quotes or em dashes! Replace with straight quotes and hyphens.)"/>
<meta name="identifier" content="TECH-BOOK-ISBN-13"/>
<title>{{ title }}</title>
</head>
<body data-type="book">
{{ content }}
</body>
</html>
64 changes: 64 additions & 0 deletions theme/pdf/pdf.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
@charset "UTF-8";

/*--------Put Your Custom CSS Rules Below--------*/
/*--- This oneoff overrides the code in https://github.com/oreillymedia/<name_of_theme>/blob/master/pdf/pdf.css---*/

/*----Uncomment to temporarily turn on code-eyballer highlighting (make sure to recomment after you build)
pre {
background-color: yellow;
}
---*/

/*----Uncomment to turn on automatic code wrapping
pre {
white-space: pre-wrap;
word-wrap: break-word;
}
----*/

/*----Uncomment to change the TOC start page (set
the number to one page _after_ the one you want;
so 6 to start on v, 8 to start on vii, etc.)
@page toc:first {
counter-reset: page 6;
}
----*/

/*----Uncomment to fix a bad break in the title
(increase padding value to push down, decrease
value to pull up)
section[data-type="titlepage"] h1 {
padding-left: 1.5in;
}
----*/

/*----Uncomment to fix a bad break in the subtitle
(increase padding value to push down, decrease
value to pull up)
section[data-type="titlepage"] h2 {
padding-left: 1in;
}
----*/

/*----Uncomment to fix a bad break in the author names
(increase padding value to push down, decrease
value to pull up)
section[data-type="titlepage"] p.author {
padding-left: 3in;
}
----*/

/* ----Uncomment to suppress duplicate page numbers in index entries
WARNING: MAY CAUSE PDF BUILDS TO SEGFAULT
div[data-type="index"] {
-ah-suppress-duplicate-page-number: true;
}
----*/
58 changes: 58 additions & 0 deletions theme/pdf/pdf.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="h">

<!-- Do add border div for figure images in animal series -->
<xsl:param name="figure.border.div" select="1"/>

<!-- This param is required for animal_theme_sass, but not the old animal_theme -->
<!-- Generate separate footnote-call markers, so that we don't
need to rely on AH counters to do footnote numbering -->
<xsl:param name="process.footnote.callouts.only" select="1"/>


<xsl:template name="string-replace-all">
<xsl:param name="text"/>
<xsl:param name="replace"/>
<xsl:param name="by"/>
<xsl:choose>
<xsl:when test="contains($text, $replace)">
<xsl:value-of select="substring-before($text,$replace)"/>
<xsl:value-of select="$by"/>
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text" select="substring-after($text,$replace)"/>
<xsl:with-param name="replace" select="$replace"/>
<xsl:with-param name="by" select="$by"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="h:img/@src">
<xsl:choose>
<xsl:when test="contains(., 'callouts/')">
<xsl:variable name="newtext">
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text" select="."/>
<xsl:with-param name="replace" select="'png'"/>
<xsl:with-param name="by" select="'pdf'"/>
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="src">
<xsl:value-of select="$newtext"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

</xsl:stylesheet>
9 changes: 9 additions & 0 deletions titlepage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<section data-type="titlepage">
<h1>Book Title Here</h1>
<p class="edition">??? Edition</p> <!--(only include edition line if it's 2e or higher -->
<p class="subtitle">Subtitle Goes Here</p>
<p class="author">Some Author</p>
</section>

<!-- if a pocket ref, include this line below the h1:
<p data-type="subtitle">Pocket Reference/Guide</p> -->
2 changes: 2 additions & 0 deletions toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!-- This is a placeholder element for use with the automatic TOC generation option in Atlas -->
<nav data-type="toc"/>

0 comments on commit bb58760

Please sign in to comment.