1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-09-26 04:40:53 +02:00
Commit Graph

1642 Commits

Author SHA1 Message Date
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 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
Elisabeth Henry
63dd7ec7f9 latex renderer also transform local links 2016-02-27 00:06:25 +01:00
Elisabeth Henry
a5d842a096 added license and bugs to config.book 2016-02-26 23:37:55 +01:00
Elisabeth Henry
33edcdb905 updated Chaneglog 2016-02-26 23:37:40 +01:00
Elisabeth Henry
1a227ff0be epub renderer now correctly displays unnumbered chapters without a number 2016-02-26 23:34:58 +01:00
Elisabeth Henry
67320cd5cf updated tests/book.rs to new path for config.book 2016-02-26 23:30:39 +01:00
Elisabeth Henry
d8683054da Epub renderer now correctly converts links to .md files used for the book to inner link in epub document 2016-02-26 23:23:25 +01:00
Elisabeth Henry
00f4b007dc updated Bugs.md 2016-02-26 23:22:21 +01:00
Elisabeth Henry
4ff7c28f69 html renderer now converts links to .md files used in the book to inner references 2016-02-26 23:17:48 +01:00
Elisabeth Henry
94d839df5c fixed typos in README.md 2016-02-26 23:16:47 +01:00
Elisabeth Henry
52e706c341 moved config.book to root dir 2016-02-26 23:16:32 +01:00
Elisabeth Henry
e8846117f2 started working on a way to get links to .md files working, but it's gonna be a long road 2016-02-26 22:41:30 +01:00