1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-06-02 06:36:23 +02:00
Commit Graph

259 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 6dd8a970d5 Move BookOptions to its own module, bookoptions.rs 2016-03-01 15:09:50 +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 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 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 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 2563d997c3 use Logger struct and removed book.debug/println 2016-02-28 17:11: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 a523789435 local images now work for pdf and epub outputs 2016-02-27 04:35:38 +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
Elisabeth Henry 9ee9e4958d cleaned a bit (hum) book.rs 2016-02-26 19:11:16 +01:00
Elisabeth Henry 8175812f36 added zip.command to book options 2016-02-26 18:51:13 +01:00
Elisabeth Henry bd2971ab61 no longer change current directory, as it generated problems in multithreaded envs 2016-02-26 17:33:33 +01:00
Elisabeth Henry f855d74db6 continued documentation 2016-02-26 04:21:20 +01:00
Elisabeth Henry 158142c32e book.rs: added documentation 2016-02-26 02:45:21 +01:00
Elisabeth Henry 0b0da0092e code cleaning and improving documentation 2016-02-26 01:49:38 +01:00
Elisabeth Henry 3381c5d078 added unit test for book 2016-02-26 00:17:03 +01:00
Elisabeth Henry 30262ebc07 binary: added a --print-template option 2016-02-25 15:41:30 +01:00
Elisabeth Henry 770822ac43 Book now supports multiline strings 2016-02-25 15:29:35 +01:00
Elisabeth Henry 0a0f21c6b5 added option to display toc in the document for HTML and PDF output 2016-02-24 20:51:39 +01:00
Elisabeth Henry 7653d2e767 book option numbering is now an i32 instead of a false, 2016-02-23 23:40:41 +01:00
Elisabeth Henry 38db23b8ae set numbering to true by default 2016-02-23 23:29:39 +01:00
Elisabeth Henry 47cb2d1c8a Book now can describe its options 2016-02-23 05:04:50 +01:00
Elisabeth Henry 50cc073b21 added support for end notes 2016-02-23 02:20:11 +01:00
Elisabeth Henry 6218ca91cf refactored Book to use a map instead of 42 fields 2016-02-22 23:21:51 +01:00
Elisabeth Henry 0391153865 cleaner no longer used in parser but in the various renderers 2016-02-22 16:20:47 +01:00
Elisabeth Henry 9ace79f1b5 book now have a set_option method, allowing binary to --set anyone of the book option 2016-02-22 03:23:16 +01:00
Elisabeth Henry ef26c10c02 updated templates 2016-02-21 19:39:54 +01:00
Elisabeth Henry f4cb25c8f8 removed verbose option from book config as it only makes sense on the command line 2016-02-21 18:31:13 +01:00
Elisabeth Henry c5a1fcfe60 warning messages now printed on stderr, and only in verbose 2016-02-21 18:29:16 +01:00
Elisabeth Henry 11c84726b8 fixed some escaping, now allow use output.xx instead of output_xxx in book file 2016-02-21 05:29:40 +01:00
Elisabeth Henry 3accc203d9 fixed latex escaping problem in title 2016-02-21 04:34:54 +01:00
Elisabeth Henry 80e0d50c53 nows tries to render odt if specified in book file 2016-02-21 01:55:16 +01:00
Elisabeth Henry 40b32226cc experimental support for odt 2016-02-21 01:49:58 +01:00
Elisabeth Henry d474bce3d6 started to work on odt rendering but it's a pain:( 2016-02-20 22:52:10 +01:00
Elisabeth Henry c6455dd98c added support for chapter whose title is hidden 2016-02-20 19:06:15 +01:00
Elisabeth Henry 06f59b08f8 added options to binary 2016-02-20 16:56:07 +01:00
Elisabeth Henry 2ad66d7286 now supports epub3 (in theory) 2016-02-20 03:41:29 +01:00
Elisabeth Henry 91d99ca9a6 fixed a bug which caused error when crowbook runned on book in same directory 2016-02-20 00:10:31 +01:00
Elisabeth Henry 829746a762 runned clippy, thus some minor corrections 2016-02-19 23:43:16 +01:00
Elisabeth Henry 559cc8fac7 added a way to set epub/html template and css 2016-02-19 22:17:10 +01:00
Elisabeth Henry 90504e2acc added a book_example 2016-02-19 21:35:49 +01:00
Elisabeth Henry 1db5f79107 add option to have custom command for latex->pdf 2016-02-19 17:19:42 +01:00
Elisabeth Henry 1f8f6129c2 some stuff 2016-02-19 16:54:00 +01:00
Elisabeth Henry e60e173356 handles pdf support through pdflatex 2016-02-19 16:25:28 +01:00
Elisabeth Henry 15fb7064dd added a render_all method to book 2016-02-19 15:28:37 +01:00
Elisabeth Henry c2b71fdd39 parsing in now done in book, once and for all 2016-02-19 14:59:37 +01:00
Elisabeth Henry 54d4cbecdb added support for customized header numbering 2016-02-19 04:37:15 +01:00
Elisabeth Henry 86f18eef59 Epub renderergit statusgit status! 2016-02-19 02:56:43 +01:00
Elisabeth Henry 2160f5d0d8 compiles without warnings 2016-02-18 22:50:23 +01:00
Elisabeth Henry 9173e2f4e8 read config from file 2016-02-18 22:32:43 +01:00
Elisabeth Henry eea9a7d0f6 html exports looks pretty good \o/ 2016-02-18 22:18:08 +01:00
Elisabeth Henry 10f58f9002 html renderer is starting to work \o/ 2016-02-18 22:05:54 +01:00
Elisabeth Henry 69defe2d66 better error support 2016-02-18 18:53:57 +01:00
Elisabeth Henry 7027cc5076 started working on book structure 2016-02-18 18:28:45 +01:00