O'Reilly templates
@ -0,0 +1,54 @@
|
||||
{
|
||||
"branch": "master",
|
||||
"files": [
|
||||
"titlepage.html",
|
||||
"copyright.html",
|
||||
"toc.html",
|
||||
"preface.asciidoc",
|
||||
"ch01.asciidoc",
|
||||
"ix.html",
|
||||
"author_bio.html",
|
||||
"colo.html"
|
||||
],
|
||||
"formats": {
|
||||
"pdf": {
|
||||
"version": "web",
|
||||
"color_count": "1",
|
||||
"index": true,
|
||||
"toc": true,
|
||||
"syntaxhighlighting": true,
|
||||
"show_comments": false,
|
||||
"trim_size": "7inx9.1875in",
|
||||
"antennahouse_version": "AHFormatterV62_64-MR4"
|
||||
},
|
||||
"epub": {
|
||||
"index": true,
|
||||
"toc": true,
|
||||
"epubcheck": true,
|
||||
"syntaxhighlighting": true,
|
||||
"show_comments": false,
|
||||
"downsample_images": false,
|
||||
"mathmlreplacement": false
|
||||
},
|
||||
"mobi": {
|
||||
"index": true,
|
||||
"toc": true,
|
||||
"syntaxhighlighting": true,
|
||||
"show_comments": false,
|
||||
"downsample_images": false
|
||||
},
|
||||
"html": {
|
||||
"index": true,
|
||||
"toc": true,
|
||||
"syntaxhighlighting": true,
|
||||
"show_comments": false,
|
||||
"consolidated": false
|
||||
}
|
||||
},
|
||||
"theme": "oreillymedia/animal_theme_sass",
|
||||
"title": "Mastering the Lightning Network",
|
||||
"print_isbn13": "9781492054863",
|
||||
"lang": "en",
|
||||
"accent_color": "",
|
||||
"templating": false
|
||||
}
|
@ -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>
|
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 361 B |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 617 B |
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 411 B |
After Width: | Height: | Size: 640 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 353 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 350 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 345 B |
After Width: | Height: | Size: 348 B |
After Width: | Height: | Size: 355 B |
After Width: | Height: | Size: 344 B |
After Width: | Height: | Size: 357 B |
After Width: | Height: | Size: 357 B |
@ -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 illustration is by Karen Montgomery, based on a black and white engraving from <em>FILL IN CREDITS</em>. The cover fonts are Gilroy Semibold 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>
|
@ -0,0 +1,2 @@
|
||||
<!-- This is a placeholder element for use with the automatic index generation option in Atlas -->
|
||||
<section data-type="index"/>
|
@ -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>
|
@ -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>
|
@ -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;
|
||||
}
|
||||
|
||||
----*/
|
@ -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>
|
@ -0,0 +1,7 @@
|
||||
<section data-type="titlepage">
|
||||
<h1>Mastering the Lightning Network</h1>
|
||||
|
||||
<p class="author">Andreas Antonopoulos</p>
|
||||
</section>
|
||||
<!-- if a pocket ref, include this line below the h1:
|
||||
<p data-type="subtitle">Pocket Reference/Guide</p> -->
|