Commit Graph

270 Commits

Author SHA1 Message Date
Mathieu David
374d865251 unwrap result from fill_config in tests to silence the warnings and let test fail if fill_config fails 2016-03-11 14:49:40 +01:00
Mathieu David
d2b4cf39af Extract languages from toml file 2016-03-11 14:49:40 +01:00
Mathieu David
f4aacad428 extract outputs from toml config 2016-03-11 14:49:40 +01:00
Mathieu David
371336746f Make extracting config values from toml struct more elegant with 'and_then' and 'map' on option types + extract authors from config file 2016-03-11 14:49:40 +01:00
Mathieu David
bb486c02b8 temporarily fix doc test 2016-03-11 14:49:40 +01:00
Mathieu David
d2d58b3581 Swap out the old config code for the new toml based config 2016-03-11 14:49:34 +01:00
Mathieu David
e4e2f41172 extract source path from toml if specified 2016-03-11 14:47:38 +01:00
Mathieu David
b589b2fdab Move the code that tries to exctract values from the toml table into separate functions to allow for early returns and overal more sane code 2016-03-11 14:47:38 +01:00
Mathieu David
ddec342b01 Add implementation for retrieving title and description from toml configuration file, the incomplete test now passes 2016-03-11 14:47:38 +01:00
Mathieu David
0e341c0430 Handle errors in the toml configuration file 2016-03-11 14:47:38 +01:00
Mathieu David
f8926a7516 Add incomplete test for fill_config 2016-03-11 14:47:38 +01:00
Mathieu David
e6d3179907 Define config struct and basic implementation
Layout the config struct and the basic impl
Define helper config structs to group options for languages, renderers, authors and plugins.
2016-03-11 14:47:38 +01:00
Mathieu David
560fc06d70 Add file_to_string to return the content of the file given a path 2016-03-11 14:47:00 +01:00
Mathieu David
28ee59d222 Move fs related utility functions into a 'fs' submodule 2016-03-11 14:46:54 +01:00
Mathieu David
556258a6d8 Add rustfmt configuration file and run rustfmt on the whole project 2016-03-11 14:45:49 +01:00
Mathieu David
fe775850dc Update dependencies 2016-03-11 14:42:01 +01:00
Mathieu David
6bac41caa8 Merge pull request #118 from japaric/travis
Travis CI: expand to test and deploy for Linux and Mac
2016-03-08 17:25:52 +01:00
Jorge Aparicio
b094268b68 disable the i686-apple-darwin target 2016-03-08 09:21:50 -05:00
Jorge Aparicio
02a37e0ee9 disable doc tests when crossing 2016-03-08 08:57:35 -05:00
Mathieu David
9e34eccb3e Add windows (AppVeyor) build badge 2016-03-08 01:03:44 +01:00
Mathieu David
79fb92ed7c Merge pull request #117 from japaric/appveyor
set up AppVeyor to test and deploy on Windows
2016-03-08 00:35:54 +01:00
Jorge Aparicio
5e78697ab1 Travis CI: expand to test and deploy for Linux and Mac 2016-03-07 18:16:42 -05:00
Jorge Aparicio
469cb10d4a manually package artifact during before_deploy phase
The automatic packaging phase runs before the before_deploy phase which is too early so we can rely
on it.
2016-03-07 18:01:05 -05:00
Jorge Aparicio
0f9caf4410 set up AppVeyor to test and deploy on Windows 2016-03-07 17:14:05 -05:00
Mathieu David
f23a5f2729 Merge pull request #115 from vrinek/init-with-gitignore-take-2
Move `.gitignore` directly under the root folder
2016-03-07 12:09:25 +01:00
vrinek
bc41efe414 Move .gitignore directly under the root folder 2016-03-07 08:52:19 +00:00
Mathieu David
5316089e61 Modify wording of confirmation request before creation of .gitignore 2016-03-02 19:38:39 +01:00
Mathieu David
73ce3f814a Merge branch 'init-with-gitignore' of https://github.com/vrinek/mdBook into vrinek-init-with-gitignore 2016-03-02 19:20:21 +01:00
Mathieu David
075da959c9 bump version, v0.0.10 has been published to crates.io 2016-03-01 18:50:04 +01:00
Mathieu David
80deac90d9 Merge branch 'master' of https://github.com/azerupi/mdBook 2016-03-01 18:33:55 +01:00
Mathieu David
625f5081fa update notify and change dependency version restrictions 2016-03-01 18:32:43 +01:00
vrinek
1eb59428e6 Ask user to create .gitignore and skip on --force 2016-02-28 15:28:11 +00:00
Mathieu David
3e8151e8e3 Merge pull request #112 from jessestricker/feature-meta
Add description config option
2016-02-25 17:21:51 +01:00
Jesse Stricker
3c10a85735 Add documentation and example for description config 2016-02-25 15:01:16 +01:00
Jesse Stricker
330b1ad55d Add description config option 2016-02-25 14:32:49 +01:00
vrinek
596455f28c Generate simple .gitignore on init 2016-02-23 14:03:45 +00:00
Mathieu David
f24eb59753 Bump version number, v0.0.9 has been published to Crates.io 2016-02-22 19:03:31 +01:00
Mathieu David
01c5085725 Add an entry about the favicon in the docs 2016-02-22 18:01:36 +01:00
Mathieu David
9f17be2c32 Merge pull request #109 from jessestricker/feature-favicon
Add theme support for favicon
2016-02-22 17:28:46 +01:00
Jesse Stricker
88fabd76f0 Copy favicon on 'init --theme' 2016-02-22 17:20:54 +01:00
Jesse Stricker
f508db6113 Add favicon support to theme 2016-02-22 17:17:07 +01:00
Jesse Stricker
1083d1822d Add default favicon.png 2016-02-22 16:59:53 +01:00
Mathieu David
fc86b963bb Merge pull request #108 from funkill/styles
add rounding for first and last items in theme selector
2016-02-16 10:30:01 +01:00
funkill
f2b913c9dd add rounding for first and last items in theme selector 2016-02-16 11:15:08 +03:00
Mathieu David
dd0cfc14d4 bump version number to 0.0.9, v0.0.8 has been published to crates.io 2016-02-16 08:57:55 +01:00
Mathieu David
5891e4b5db Fix bug where theme-popup was under the navigation arrows making it impossible to change the theme 2016-02-16 08:50:57 +01:00
Mathieu David
394023f617 Bump version number from 0.0.7 to 0.0.8, version 0.0.7 has been published to Crates.io 2016-02-15 21:20:07 +01:00
Mathieu David
39a6fe4b3c Fix wildcard dependency on crossbeam 2016-02-15 21:18:43 +01:00
Mathieu David
75b98d7019 Merge pull request #106 from funkill/pulldown-mark-update
pulldown-mark version bump
2016-02-15 21:01:21 +01:00
funkill
814b21ad94 pulldown-mark version bump 2016-02-15 21:25:46 +03:00