Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
robogeek committed Apr 28, 2015
1 parent 40ce934 commit 9be1f3a
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 18 deletions.
88 changes: 80 additions & 8 deletions assets/css/style.css
Expand Up @@ -55,7 +55,7 @@ img.cover-image {

/* fonts (keep at bottom); using Free Serif and Sans as a fallback for its rich set of glyphs */

@font-face {
/* @font-face {
font-family: "Free Serif";
font-style: normal;
font-weight: normal;
Expand All @@ -67,7 +67,7 @@ img.cover-image {
font-style: normal;
font-weight: bold;
src: url(../fonts/FreeSansBold.otf);
}
} */

@font-face {
font-family: "Ubuntu Mono";
Expand Down Expand Up @@ -235,18 +235,90 @@ img.cover-image {
} */



/* @font-face {
font-family: "Open Sans Light";
font-style: normal;
font-weight: 300;
src: url(../fonts/OpenSans-Light.ttf);
}
@font-face {
font-family: "Open Sans Light Italic";
font-style: italic;
font-weight: 300;
src: url(../fonts/OpenSans-LightItalic.ttf);
} */

@font-face {
font-family: "Open Sans Regular";
font-style: normal;
font-weight: 400;
src: url(../fonts/OpenSans/OpenSans-Regular.ttf);
}

@font-face {
font-family: "Open Sans Italic";
font-style: italic;
font-weight: 400;
src: url(../fonts/OpenSans/OpenSans-Italic.ttf);
}

/* @font-face {
font-family: "Open Sans Semibold";
font-style: normal;
font-weight: 500;
src: url(../fonts/OpenSans-Semibold.ttf);
}
@font-face {
font-family: "Open Sans Semibold Italic";
font-style: italic;
font-weight: 500;
src: url(../fonts/OpenSans-SemiboldItalic.ttf);
} */

@font-face {
font-family: "Open Sans Bold";
font-style: normal;
font-weight: 700;
src: url(../fonts/OpenSans/OpenSans-Bold.ttf);
}

@font-face {
font-family: "Open Sans Bold Italic";
font-style: italic;
font-weight: 700;
src: url(../fonts/OpenSans/OpenSans-BoldItalic.ttf);
}

/* @font-face {
font-family: "Open Sans Extra Bold";
font-style: normal;
font-weight: 800;
src: url(../fonts/OpenSans-ExtraBold.ttf);
}
@font-face {
font-family: "Open Sans Bold Extra Italic";
font-style: italic;
font-weight: 800;
src: url(../fonts/OpenSans-ExtraBoldItalic.ttf);
} */


body {
font-family: "Free Serif", serif;
font-family: "Open Sans Regular", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
font-family: "Free Serif", serif;
font-family: "Open Sans Regular", sans-serif;
}


strong, span.bold {
font-weight: bold;
font-family: "Free Serif", serif;
font-family: "Open Sans Bold", sans-serif;
}


Expand Down Expand Up @@ -291,7 +363,7 @@ div.example {
div.example p.title {
font-style: italic;
font-weight: normal;
font-family: "Free Serif", serif;
font-family: "Open Sans Italic", sans-serif;
margin: 10px 0 5px 0 !important;
}

Expand Down Expand Up @@ -329,7 +401,7 @@ tr:nth-of-type(even) {
}

th {
font-family: "Free Sans Bold", sans-serif;
font-family: "Open Sans Bold", sans-serif;
color: #000;
font-weight: bold;
}
Expand Down Expand Up @@ -360,7 +432,7 @@ div.informaltable td, div.informaltable th {
div.table p.title {
font-weight: normal;
font-style: italic;
font-family: "Free Serif", serif;
font-family: "Open Sans Italic", sans-serif;
margin: 20px 0 0 0 !important;
text-align: center;
padding: 0;
Expand Down
Binary file removed assets/fonts/FreeSansBold.otf
Binary file not shown.
Binary file removed assets/fonts/FreeSerif.otf
Binary file not shown.
Binary file modified assets/images/cover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/epub-guide-cover.png
Binary file not shown.
18 changes: 14 additions & 4 deletions config.js
Expand Up @@ -26,7 +26,7 @@ module.exports = {
},

metadata: {
title: "The Open Source Markdown Path to Writing e-Books",
title: "Creating eBooks with Markdown and Open Source Tools",
languages: [ "en" ],
identifiers: [
{
Expand All @@ -46,7 +46,7 @@ module.exports = {
subjects: [
"Self Publishing", "Markdown", "EPUB", "EPUB3", "Open Source Publishing",
"Electronic Books", "Electronic Book Publishing", "E-Books", "E-Book Publishing",
"EPUB Publishing"
"EPUB Publishing", "Create eBooks"
],
// TEST: date: "2015-04-15",
// TEST: modified: "2015-04-15T00:00:00Z",
Expand Down Expand Up @@ -325,8 +325,18 @@ module.exports = {
{ id: "epub.embedded.font.2", href: "fonts/UbuntuMono-BI.ttf", type: "application/vnd.ms-opentype" },
{ id: "epub.embedded.font.3", href: "fonts/UbuntuMono-R.ttf", type: "application/vnd.ms-opentype" },
{ id: "epub.embedded.font.4", href: "fonts/UbuntuMono-RI.ttf", type: "application/vnd.ms-opentype" },
{ id: "epub.embedded.font.5", href: "fonts/FreeSerif.otf", type: "application/vnd.ms-opentype" },
{ id: "epub.embedded.font.6", href: "fonts/FreeSansBold.otf", type: "application/vnd.ms-opentype" },
/* { id: "epub.embedded.font.5", href: "fonts/FreeSerif.otf", type: "application/vnd.ms-opentype" },
{ id: "epub.embedded.font.6", href: "fonts/FreeSansBold.otf", type: "application/vnd.ms-opentype" }, */
{ id: "epub.embedded.font.7", href: "fonts/OpenSans/OpenSans-Bold.ttf", type: "application/x-font-ttf" },
{ id: "epub.embedded.font.8", href: "fonts/OpenSans/OpenSans-BoldItalic.ttf", type: "application/x-font-ttf" },
/* { id: "epub.embedded.font.9", href: "fonts/OpenSans/OpenSans-ExtraBold.ttf", type: "application/x-font-ttf" },
{ id: "epub.embedded.font.10", href: "fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf", type: "application/x-font-ttf" }, */
{ id: "epub.embedded.font.11", href: "fonts/OpenSans/OpenSans-Italic.ttf", type: "application/x-font-ttf" },
/* { id: "epub.embedded.font.12", href: "fonts/OpenSans/OpenSans-Light.ttf", type: "application/x-font-ttf" },
{ id: "epub.embedded.font.13", href: "fonts/OpenSans/OpenSans-LightItalic.ttf", type: "application/x-font-ttf" }, */
{ id: "epub.embedded.font.14", href: "fonts/OpenSans/OpenSans-Regular.ttf", type: "application/x-font-ttf" },
/* { id: "epub.embedded.font.15", href: "fonts/OpenSans/OpenSans-Semibold.ttf", type: "application/x-font-ttf" },
{ id: "epub.embedded.font.16", href: "fonts/OpenSans/OpenSans-SemiboldItalic.ttf", type: "application/x-font-ttf" }, */

/* { id: "epub.embedded.font.7", href: "fonts/Raleway/Raleway-Bold.ttf", type: "application/x-font-ttf" },
{ id: "epub.embedded.font.8", href: "fonts/Raleway/Raleway-ExtraBold.ttf", type: "application/x-font-ttf" },
Expand Down
12 changes: 6 additions & 6 deletions documents/3d-rendering.html.md
Expand Up @@ -71,23 +71,23 @@ The `epub_page.html.ejs` template can be studied in the github repository if you

As an example of more comprehensive metadata usage, consider a series of pages containing information tables. The table data could be given as metadata, and the layout template could format that data into an HTML table, and encapsulate it into a complete HTML file.

Suppose you were writing a book of ice cream sundae recipes. The metadata could list the ingredients, while the content could describe how to asssemble the Sundae and perhaps author remniscences (and pictures) from childhood visits to Atlantic City.
Suppose you were writing a book of ice cream sundae recipes. The metadata could list the ingredients, while the content could describe how to assemble the Sundae and perhaps author remniscences (and pictures) from childhood visits to Atlantic City.

Consider - `bananna-split.html.md`
Consider - `banana-split.html.md`

```
---
layout: ice-cream-sundae.html.ejs
title: Bananna Split Sundae
title: Banana Split Sundae
dish-style: Tray
base: 1 Bananna, cut in half lengthwise
base: 1 Banana, cut in half lengthwise
flavors: Vanilla
topping: Chocolate Syrup
sprinkles: Peanuts
image: images/sundaes/bananna-split.png
image: images/sundaes/banana-split.png
---
In the summer of 1967 I had my first REAL bananna split
In the summer of 1967 I had my first REAL banana split
sundae, and I thought I'd gone to heaven it was so good.
These are easy to make and sure to be a crowd pleaser.
...
Expand Down

0 comments on commit 9be1f3a

Please sign in to comment.