Elisabeth Henry
677ed2b04c
Fix typo in epub stylesheet
2016-03-01 19:10:57 +01:00
Elisabeth Henry
87dc6e0638
Update documentation
2016-03-01 18:46:59 +01:00
Elisabeth Henry
b310d762c5
Improve the way --help is displayed
2016-03-01 18:46:42 +01:00
Elisabeth Henry
6e99258062
Set book's path when creating with new_from_markdown_file
...
This should allow a single markdown file to link to e.g. a cover file
and still be rendered correctly even if crowbook is called from
another directory.
2016-03-01 18:28:49 +01:00
Elisabeth Henry
81180d39cf
Update ChangeLog.md
2016-03-01 18:08:06 +01:00
Elisabeth Henry
7be4af4264
Add option --single to the binary
...
This option allows Crowbook to parse a single MarkDown file,
defaulting to hide the chapters' headings. This should allow to get
ride of `.book` file for short stories.
Resolves: #2 , #3
2016-03-01 17:43:40 +01:00
Elisabeth Henry
61f4dabff5
Add Book::new_from_markdown_file method
...
This method allows to create a book from a single markdown file.
2016-03-01 17:36:47 +01:00
Elisabeth Henry
05cb43bc1d
Update libs/tests/book.rs to use real YAML multiline syntax
2016-03-01 17:28:31 +01:00
Elisabeth Henry
9a181f9663
Parse book configuration file with yaml-rust
...
The first part of a `.book` file, setting book options, is now parsed
as true YAML by the yaml-rust library instead of using a custom
parser.
2016-03-01 17:23:03 +01:00
Elisabeth Henry
0a39bee213
Make Book parse inline yaml blocks, not just ignoring them.
2016-03-01 16:00:43 +01:00
Elisabeth Henry
98517c243b
Make Book::remove_yaml issues a warning when yaml block isn't valid
...
Previously, it was a debug message, but since it is probable the user
would actually want this to be seen as YAML it's better if the message
is more visible.
2016-03-01 15:42:27 +01:00
Elisabeth Henry
ae2f43193c
Make BookOptions::set returns the previous option, if already set
...
This way, it is possible to display a debug message or a warning when
an option is overriden with a new setting.
2016-03-01 15:33:24 +01:00
Elisabeth Henry
60564c2793
Update ChangeLog.md
2016-03-01 15:12:03 +01:00
Elisabeth Henry
6dd8a970d5
Move BookOptions to its own module, bookoptions.rs
2016-03-01 15:09:50 +01:00
Elisabeth Henry
c23b353d2c
Use yaml_rust for BookOptions
...
`BookOptions` now internally uses the yaml_rust library. This should
not change much for an end-user perspective, but should make easy to
allow to configure a `Book` with a YAML block inside a markdown file.
Since the "old" Crowbooks's config format was similar, but somewhat
different, to markdown, this might cause some bugs,
though. Particularly, strings should now be escaped with "" in some
casess (e.g. if it contains special characters). On the other hand, it
*allows* to optionally espace a string with these quotes, which wasn't
possible until then and might be useful in some cases.
2016-03-01 15:01:25 +01:00
Elisabeth Henry
4299ee5eea
Added doc-pak
to .gitignore
...
This file gets generated automatically by `checkinstall`, so there is
no need to include it in the repository.
2016-03-01 04:09:39 +01:00
Elisabeth Henry
086932a0ab
Added description-pak file (useful for checkinstall).
...
This way, anyone can use `make package` to create a .deb package of
the binary.
2016-03-01 04:07:09 +01:00
Elisabeth Henry
8b8d847a7d
Consider it is a YAML block only if first line is at the beginning of a
...
doc or preceded by an empty line, to avoid the case where
Foo
---
Bar
---
gets counted as a YAML block. The only ambiguous case left is if you had wanted to make two rules,
but can easily be avoided by using either *** for rules, or by using more dashes.
2016-03-01 04:02:49 +01:00
Elisabeth Henry
fa5393641b
Crowbook now ignores YAMLÂ blocks (i.e., delimited by two lines containing ---, must contain valid YAML) in Markdown files
2016-03-01 01:28:36 +01:00
Elisabeth Henry
f60693416f
updated Bugs and Changelog
2016-02-29 14:12:47 +01:00
Elisabeth Henry
32f50f831c
Fixed an espacing error in Makefile
2016-02-29 14:05:29 +01:00
Elisabeth Henry
67bc26aaa8
made more clear in debug mode that what is printed is the output of latex/zip command
2016-02-29 01:52:26 +01:00
Elisabeth Henry
e6343dd1b7
improved warning messages
2016-02-29 01:47:49 +01:00
Elisabeth Henry
2a2def3473
updated changelog
2016-02-29 01:41:56 +01:00
Elisabeth Henry
127bdae1e5
crowbook no longer crash if it cannot create file specified with --output
2016-02-29 01:39:10 +01:00
Elisabeth Henry
2cb67068c6
book.render_all now does error checking internally and runs all renderer even if first one fails
2016-02-29 01:32:30 +01:00
Elisabeth Henry
dae4b02a00
tests/book.rs: updated so it works again with changed api
2016-02-29 01:12:29 +01:00
Elisabeth Henry
dcb2b8070f
preventively bumped version to 0.4.0-unreleased for semantic versioning reasons
2016-02-29 00:47:55 +01:00
Elisabeth Henry
d32bccd7a9
updated changelog
2016-02-29 00:47:05 +01:00
Elisabeth Henry
cba822933c
updated Makefile to add make mackage
2016-02-29 00:45:02 +01:00
Elisabeth Henry
9125fa370f
added --debug option
2016-02-29 00:44:48 +01:00
Elisabeth Henry
48a672c024
adaptating verbose status to Logger
2016-02-29 00:36:45 +01:00
Elisabeth Henry
b00774ca50
added Makefile so it is possible to make checkinstall and generate .deb and .rpm
2016-02-28 20:15:24 +01:00
Elisabeth Henry
2563d997c3
use Logger struct and removed book.debug/println
2016-02-28 17:11:11 +01:00
Elisabeth Henry
31dc190fe0
started working on logger struct
2016-02-28 15:23:26 +01:00
Elisabeth Henry
9d8cf18664
updated documentation and bumped version
v0.3.0
2016-02-27 17:02:35 +01:00
Elisabeth Henry
1d53e9772e
Add hidden titles to the toc even if the heading is not displayed inline
2016-02-27 15:04:35 +01:00
Elisabeth Henry
94a9f4eb2e
worked a bit on css
2016-02-27 14:51:11 +01:00
Elisabeth Henry
cbbabf11e9
moved book options handling to a separate struct, BookOptions
2016-02-27 13:52:43 +01:00
Elisabeth Henry
5ec5924a50
renamed resource.rs to resource_handler.rs
2016-02-27 12:52:25 +01:00
Elisabeth Henry
280dd1a079
updated changelog
2016-02-27 04:50:04 +01:00
Elisabeth Henry
c216feff99
html renderer now passes validator
2016-02-27 04:48:17 +01:00
Elisabeth Henry
bd8cc636ca
tests/book.rs: removed unecessary use
2016-02-27 04:42:20 +01:00
Elisabeth Henry
55aa320c3c
updated config.book
2016-02-27 04:41:38 +01:00
Elisabeth Henry
dc6498801a
removed debugging println
2016-02-27 04:41:29 +01:00
Elisabeth Henry
63124d4b65
local images now work for pdf and epub outputs
2016-02-27 04:40:23 +01:00
Elisabeth Henry
a523789435
local images now work for pdf and epub outputs
2016-02-27 04:35:38 +01:00
Elisabeth Henry
4e25d5eddb
EPUB can now embed local images
2016-02-27 03:51:57 +01:00
Elisabeth Henry
b9844663f5
main.rs: fixed bug
2016-02-27 02:57:55 +01:00
Elisabeth Henry
528f1ac000
updated changelog
2016-02-27 00:07:22 +01:00