1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-28 14:06:29 +02:00

html exports looks pretty good \o/

This commit is contained in:
Elisabeth Henry 2016-02-18 22:18:08 +01:00
parent 10f58f9002
commit eea9a7d0f6
3 changed files with 57 additions and 4 deletions

View File

@ -9,10 +9,9 @@ fn main() {
author: Lizzie Crowdagger
title: Pas tout à fait des hommes
lang: fr
numbering: true
numbering: false
autoclean: true
cover: book-example/cover.png
nb_char: '~'
+ book_example/chapitre_01.md
+ book_example/chapitre_02.md

View File

@ -44,8 +44,8 @@ impl Book {
pub fn get_mapbuilder(&self) -> MapBuilder {
MapBuilder::new()
.insert_str("author", self.author.clone())
.insert_str("title", self.author.clone())
.insert_str("lang", self.author.clone())
.insert_str("title", self.title.clone())
.insert_str("lang", self.lang.clone())
}
/// Return a Box<Cleaner> corresponding to the appropriate cleaning method, or None

View File

@ -5,6 +5,60 @@
<meta name="generator" content="crowbook">
<meta name="author" content="{{author}}">
<title>{{title}}</title>
<style type = "text/css">
body {
font-family: "Linux Libertine", "Georgia", serif;
margin-left: 15%;
margin-right: 15%;
margin-top: 5%;
margin-bottom: 5%;
text-align: justify;
font-size: 14pt;
}
.rule {
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
font-weight: bold;
}
p {
text-indent: 1.25em;
font-size: 1em;
margin:0;
hyphens: auto;
}
code {
font-family: monospace;
margin-top: 2em;
margin-bottem: 2em;
}
h1 {
text-align: left;
font-family: Linux Biolinum, sans-serif;
font-variant: small-caps;
}
h2 {
text-align: left;
font-family: Linux Biolinum, sans-serif;
font-variant: small-caps;
}
h3 {
text-align: left;
font-family: Linux Biolinum, sans-serif;
font-variant: small-caps;
}
h4 { text-align: left; }
h5 { text-align: left; }
h6 { text-align: left; }
h1.title {
text-align: center;
text-size: 200%;
}
h2.author {
text-align: right;
}
h3.date { }
</style>
</head>
<body>
<header>