Michal Budzynski
fe62d0c407
Merge remote-tracking branch 'upstream/master' into split_commands
2017-06-26 23:11:00 +02:00
Michal Budzynski
f3c8535870
Extracted `mdbook test` and `mdbook init` to separate files/modules
2017-06-26 01:24:33 +02:00
Michal Budzynski
35ed9fc286
corrected indentation in `serve` and `watch` subcommands definitions
2017-06-26 01:22:38 +02:00
Michal Budzynski
efdd0330c1
Extracted `mdbook init` to separate file/module
2017-06-26 01:02:32 +02:00
Michal Budzynski
4c78fdf431
Extracted `mdbook build` to separate file/module
2017-06-26 01:00:18 +02:00
Michal Budzynski
b09fdf07e4
Register `serve` and `watch` subcommands only if given features enabled
2017-06-26 00:43:28 +02:00
Michal Budzynski
5c524da3c2
Extracted `mdbook watch` to separate file/module
2017-06-25 23:44:28 +02:00
Michal Budzynski
99224f40d5
Extracted `mdbook serve` to separate file/module
2017-06-25 23:05:58 +02:00
Michael Bryan
fd821a5ead
the binary now uses error-chain
2017-06-25 00:13:41 +08:00
Michal Budzynski
79cdcb46de
extract serving code to a separate module
2017-06-23 08:59:42 +02:00
Michal Budzynski
f889eb3d12
first draft of silencing 404 errors
2017-06-23 08:54:14 +02:00
Mathieu David
28afebdca2
Merge branch 'minor_refactor' of https://github.com/budziq/mdBook into budziq-minor_refactor
2017-06-23 01:09:26 +02:00
Jimmy Do
193f014a5b
Add an option to convert to curly quotes when rendering to HTML
2017-06-18 10:11:04 -07:00
Michal Budzynski
e8908e32c9
Minor cleanup
...
- removing need to explicitly use `Path::new` all over the place
- removed warnings from doctests (normally invisible unless `cargo test -- --nocapture`)
- no doctests are norun/ignore now
- updated docs both in book-example and in docs not to refer to nonexisting API's
2017-06-14 21:55:42 +02:00
Mathieu David
f1121cf8c2
fix build failure
2017-06-04 20:47:34 +02:00
Mathieu David
d3ae2eda56
Replace the old book structure with the new one
2017-06-04 20:41:31 +02:00
Michal Budzynski
be3418a269
Now changes to `theme` directory trigger rebuild for `mdbook serve`
...
As `theme` dir is no longer under `src`. Updates to "theme" did not
trigger book rebuild.
Also fixed misleading docs about `theme` dir being located in `src`
2017-06-01 13:11:39 +02:00
Michal Budzynski
453b97bec0
Reformatted "Serving on " message for easier consumption
...
Now we have: `Serving on: http://localhost:3000 `
2017-05-27 11:34:46 +02:00
superstring
7de24f86a9
Change --ws-port to --websocket-port
2017-05-26 19:18:32 +08:00
superstring
027c21aef7
Fix websocket port option for serve
2017-05-26 12:04:20 +08:00
Michal Budzynski
75bbd55128
Changes made with rustfmt including `use_try_shorthand`
...
Updated the project rustfmt.toml to include `use_try_shorthand = true`.
Run rustfmt on all rust sources.
2017-05-19 13:04:37 +02:00
Corey Farwell
c6e81337fb
Implement new 'no-create' build flag.
...
Fixes https://github.com/azerupi/mdBook/issues/253 .
2017-04-17 21:53:27 -04:00
Corey Farwell
95fd292b4f
Address warnings found by rust-clippy.
...
https://github.com/Manishearth/rust-clippy
2017-02-16 16:55:28 -05:00
Pete Hayes
4b31ae6789
Add --dest-dir arg to build, watch and serve subcommands
2017-01-12 12:26:22 +00:00
Pete Hayes
1afa2debc1
Fix spelling of omitted
2017-01-12 12:23:39 +00:00
Matt Brubeck
c7b4147ba7
Watch both book.json and book.toml
2017-01-01 16:03:49 -08:00
Matt Brubeck
1ac2602360
Update to notify 3.0
...
notify now does its own event debouncing, so it's no longer necessary
for mdbook to do this manually.
2017-01-01 16:03:49 -08:00
Matt Brubeck
21bc3d47c8
Add a CLI option to open a web browser
2017-01-01 09:58:20 -08:00
Gambhiro
4153db2624
env_logger
2016-08-14 14:55:10 +01:00
Carol (Nichols || Goulding)
a459a3606e
Exit with a nonzero status if we get an error
...
This is especially important when mdbook is used with CI.
2016-08-06 14:54:07 -04:00
Ferris
317023cd0e
Added option to configure serve interface and address browser will use to connect to websocket server.
2016-08-05 21:40:00 +00:00
Austin Hartzheim
03373c6bf2
Fix azerupi/mdBook#133 by adding a link to the GitHub repo at the end of the --help output.
2016-06-11 23:08:48 +00:00
Boris-Chengbiao Zhou
9b1e224680
Fix no-default-features build
2016-05-08 21:51:34 +02:00
Boris-Chengbiao Zhou
e3f398cff2
Add address output to mdbook serve
2016-04-27 22:29:48 +02:00
Boris-Chengbiao Zhou
c8051294b0
Switch from rust-websocket to ws-rs
2016-04-02 21:44:13 +02:00
Boris-Chengbiao Zhou
e861880f95
Implement Serve feature
2016-04-02 05:20:46 +02:00
Mathieu David
c5752620d7
Merge pull request #122 from Bobo1239/fix_cooldown
...
Fix watch event cooldown
2016-03-19 19:40:58 +01:00
Boris Zhou
7f3a6c8130
Fix watch event cooldown
2016-03-19 18:28:34 +01:00
Boris-Chengbiao Zhou
b30a8bdc81
Update dependencies
2016-03-19 17:45:58 +01:00
Mathieu David
ad0794a0bd
Add a rustfmt config and run rustfmt on the code base
2016-03-17 22:31:28 +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
vrinek
1eb59428e6
Ask user to create `.gitignore` and skip on `--force`
2016-02-28 15:28:11 +00:00
Mathieu David
b40688c880
Merge branch 'master' into watch-command
2015-12-29 13:40:13 +01:00
Steve Klabnik
6bcc592ed9
Implement 'mdbook test'
...
Fixes #69
2015-12-15 13:56:24 -05:00
Mathieu David
cdbb2ee5fd
Watch builds are now spawned in new threads (using crossbeam) and there is a timelock, preventing multiple builds being triggered in less than a second
2015-11-09 14:31:00 +01:00
Mathieu David
522eef9296
first implementation of the watch sub-command. #61 Needs refining, bug in notify made me use recursion, afraid of hitting the max recursion limit...
2015-09-27 14:38:37 +02:00
FuGangqiang
77b9882825
fix #8 : Init -> create files in summary.md
2015-08-30 00:51:23 +08:00
Mathieu David
a5aa357f57
Clean-up: Remove all 'hacky' exist checks and replace by 'exists()'
2015-08-13 10:46:56 +02:00
Mathieu David
5b487a03fc
Added user prompting and a --force argument. Closes #35
2015-08-11 16:56:09 +02:00