1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-11-18 00:13:55 +01:00

updated documentation and bumped version

This commit is contained in:
Elisabeth Henry 2016-02-27 17:02:35 +01:00
parent 1d53e9772e
commit 9d8cf18664
4 changed files with 44 additions and 38 deletions

@ -1,6 +1,6 @@
[package]
name = "crowbook"
version = "0.3.0-unreleased"
version = "0.3.0"
authors = ["Elisabeth Henry <liz.henry@ouvaton.org>"]
description = "Render a Markdown book in HTML, PDF or Epub"
repository = "https://github.com/lise-henry/crowbook"

@ -1,7 +1,7 @@
ChangeLog
=========
0.3.0 (unreleased)
0.3.0 (2016-02-27)
------------------
* Crowbook now tries to convert local links. That is, if you link to a
Markdown file that is used in the book
@ -9,12 +9,12 @@ ChangeLog
inner reference inside the book.
* Latex renderer now supports (local) images.
* Epub renderer now embed (local) images in the EPUB file.
* Some changes to the HTML/Epub stylesheets.
* Internal (or usage as a library):
* Crowbook no longer changes current directory, which worked in
the binary but could cause problem if library was used in
multithreaded environment (e.g. in `cargo test`).
* Modules `toc` and `escape` are now private.
* More methods are now private.
* More modules and methods are now private.
* Improved documentation.
* Added more unit tests.
* Bugfixes:

@ -170,7 +170,13 @@ It also uses configuration files from
[Appveyor](http://www.appveyor.com/) to generate binaries for
various platforms on each release.
While Crowbook directly doesn't use them, there was also inspiration from [Pandoc](http://pandoc.org/) and [mdBook](https://github.com/azerupi/mdBook).
While Crowbook directly doesn't use them, there was also inspiration
from [Pandoc](http://pandoc.org/) and
[mdBook](https://github.com/azerupi/mdBook).
Also, the [W3C HTML validator](https://validator.w3.org/) and the
[IDPF EPUB validator](http://validator.idpf.org/) proved very useful
during development.
ChangeLog
---------

@ -177,33 +177,37 @@ usage of some of them is detailed later on.
- **default value**: `not set`
- Description of the book (used for EPUB metadata)
- **`cover`**
- **type**: string
- **type**: path
- **default value**: `not set`
- File name of the cover of the book
### Output options ###
- **`output.epub`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Output file name for EPUB rendering
- **`output.html`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Output file name for HTML rendering
- **`output.tex`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Output file name for LaTeX rendering
- **`output.pdf`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Output file name for PDF rendering
- **`output.odt`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Output file name for ODT rendering
### Misc options ###
- **`zip.command`**
- **type**: string
- **default value**: `zip`
- Command to use to zip files (for EPUB/ODT)
- **`numbering`**
- **type**: integer
- **default value**: `1`
@ -228,26 +232,26 @@ usage of some of them is detailed later on.
- **type**: boolean
- **default value**: `false`
- Display footnotes as side notes in HTML/Epub
- **`nb_char`**
- **type**: char
- **default value**: `''`
- The non-breaking character to use for autoclean when lang is set to fr
- **`temp_dir`**
- **type**: string
- **default value**: `.`
- Path where to create a temporary directory
- **type**: path
- **default value**: ``
- Path where to create a temporary directory (default: uses result from Rust's std::env::temp_dir())
- **`numbering_template`**
- **type**: string
- **default value**: `{{number}}. {{title}}`
- Format of numbered titles
- **`nb_char`**
- **type**: char
- **default value**: `''`
- The non-breaking character to use for autoclean when lang is set to fr
### HTML options ###
- **`html.template`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Path of an HTML template
- **`html.css`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Path of a stylesheet to use with HTML rendering
@ -257,11 +261,11 @@ usage of some of them is detailed later on.
- **default value**: `2`
- The EPUB version to generate
- **`epub.css`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Path of a stylesheet to use with EPUB rendering
- **`epub.template`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Path of an epub template for chapter
@ -275,10 +279,17 @@ usage of some of them is detailed later on.
- **default value**: `pdflatex`
- LaTeX flavour to use for generating PDF
- **`tex.template`**
- **type**: string
- **type**: path
- **default value**: `not set`
- Path of a LaTeX template file
Note that these options take a type, which in most case should be
pretty straightforward (a boolean can be `true` or `false`, an integer
must be composed a number, a string is, well, any string, just
remember not to put the quotes). The `path` type might puzzle you a
bit, but it's equivalent a string, except Crowbook will consider it
relatively to the book file.
### Output options ###
@ -368,21 +379,10 @@ you need to modify.
When it is generating epub or pdf files, Crowbook creates a temporary
directory (which is then removed), named from a random uuid (so we can
be pretty certain it's not gonna exist). This option specify where to
create this directory. E.g., if you set:
```
temp_dir: /tmp
```
crowbook might create a temporary directory
`/tmp/7fcbe41e-1676-46ba-b1a7-40c2fa37a3a7`.
By default, this temporary directory is created where the config file
is.
**default**: `.`
be pretty certain it's not gonna exist). By default, it uses Rust's
[`std::env::temp_dir`](https://doc.rust-lang.org/std/env/fn.temp_dir.html)
function, which should an appropriate place for temporary files, so
you probably won't have to use this option.