added epub version

Sasja-patch-1 untagged-4e563ef95d7dbde8a8eb
Merlijn Sebrechts 2019-03-19 22:07:31 +01:00
parent 17eca60e35
commit 8dc4a86429
16 changed files with 80 additions and 6 deletions

View File

@ -5,7 +5,11 @@ addons:
- poppler-utils
install: tlmgr install mdframed mweights needspace sourcecodepro sourcesanspro collection-fontsextra pdfjam
script: |
pandoc --verbose pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.pdf --template eisvogel.tex --toc --listings --metadata date="`date +%D`" --include-before-body=include-cover.tex --include-after-body=include-back.tex
# Generate epub
pandoc --verbose pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.epub --metadata date="`date +%D`" --toc-depth=2 --epub-embed-font='epub-fonts/*.ttf' --css=epub.css
# Generate PDF
pandoc --verbose pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.pdf --metadata date="`date +%D`" --template eisvogel.tex --include-before-body=include-cover.tex --include-after-body=include-back.tex
# Generate booklet
numpages=$(pdfinfo hack-the-hackerspace.pdf | awk '/^Pages/ { print $2}')
pdfbook hack-the-hackerspace.pdf 2-$(($numpages-2)) -o hack-the-hackerspace-booklet-body.pdf
deploy:
@ -13,6 +17,7 @@ deploy:
api_key:
secure: cIRIKuDWejK79Kojh2URkQBmQcKDJtH/MmrzgCySQ7ArjbZ6/cPkS014QbNmUft4GiRGZzIiulfkkvLtdT4UVGVXEw7gTK/V5b6bEci6fst4rDPL/hCDeXcLutOxcOwb7vei38V5XhE+1D2UcFQFNJFkeo60WKWR9ybIQ7pAemo=
file:
- hack-the-hackerspace.epub
- hack-the-hackerspace.pdf
- hack-the-hackerspace-booklet-cover.pdf
- hack-the-hackerspace-booklet-body.pdf

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

64
epub.css 100644
View File

@ -0,0 +1,64 @@
@font-face {
font-family: OpenSans;
font-style: normal;
font-weight: normal;
src:url("OpenSans-Regular.ttf");
}
@font-face {
font-family: OpenSans;
font-style: normal;
font-weight: bold;
src:url("OpenSans-Bold.ttf");
}
@font-face {
font-family: OpenSans;
font-style: normal;
font-weight: lighter;
src:url("OpenSans-Light.ttf");
}
@font-face {
font-family: Oswald;
font-style: normal;
font-weight: normal;
src:url("Oswald-Regular.ttf");
}
@font-face {
font-family: Oswald;
font-style: normal;
font-weight: bold;
src:url("Oswald-Bold.ttf");
}
@font-face {
font-family: Oswald;
font-style: normal;
font-weight: lighter;
src:url("Oswald-Light.ttf");
}
body {
margin: 1%;
text-align: justify;
font-size: small;
font-family: OpenSans;
line-height: 1.75;
}
code { font-family: monospace; }
h1 { text-align: left; color: #333; }
h2 { text-align: left; color: #555; }
h3 { text-align: left; }
h4 { text-align: left; }
h5 { text-align: left; }
h6 { text-align: left; }
h1, h2, h3, h4, h5, h6 {
font-family: Oswald;
}
h1.title { }
h2.author { }
h3.date { }
ol.toc { padding: 0; margin-left: 1em; }
ol.toc li { list-style-type: none; margin: 0; padding: 0; }

View File

@ -3,18 +3,23 @@
# This document contains some pandoc-specific metadata.
#
#
# This is an inline yaml metadata code block that specifies custom headers and footers
# using latex. Pandoc will probably be the only interpreter that does something useful with it.
# source: https://tex.stackexchange.com/questions/139139/adding-headers-and-footers-using-pandoc
#
title: "Hack The Hackerspace Manifesto: empowering people to be awesome"
author: [Merlijn Sebrechts, Hackerspace Gent]
tags: [Do-ocracy, Hackerspace, Self-governance, Structureless Organizations]
language: en
rights: CC BY-SA 4.0
toc: true
toc-title: "Table of Contents"
#
# Options specific to Latex (PDF version)
#
links-as-notes: yes
# This is an inline yaml metadata code block that specifies custom headers and footers
# using latex. Pandoc will probably be the only interpreter that does something useful with it.
# source: https://tex.stackexchange.com/questions/139139/adding-headers-and-footers-using-pandoc
header-includes: |
\usepackage{sectsty}
\sectionfont{\clearpage}
\usepackage{pdfpages}
links-as-notes: yes
---