Eric Huss
dc08e37320
Apply clippy::borrow_deref_ref
2023-05-13 09:44:50 -07:00
Eric Huss
45a8575b95
Apply clippy::needless_borrow
2023-05-13 09:44:11 -07:00
Eric Huss
af036d9f45
Merge pull request #2057 from seanpoulter/init-skip
...
fix(cli): init --force skips confirmation prompts
2023-04-30 14:18:30 -07:00
Eric Huss
35fdd00203
Switch from gitignore to ignore
2023-04-22 12:53:54 -07:00
Sean Poulter
bffdb0b03d
fix(cli): init --force skips confirmation prompts
2023-04-03 03:05:24 -04:00
Eric Huss
fcf0cebf6c
Fix test with multiple library paths
2022-12-17 07:11:13 -08:00
David
87a381e0a7
upgrade clap to 4.0
2022-12-14 17:11:08 -08:00
Eric Huss
21ab85cd03
Update notify
...
Update notify from 4.0.17 to 5.0.0
https://github.com/notify-rs/notify/blob/main/UPGRADING_V4_TO_V5.md
https://github.com/notify-rs/notify/blob/main/CHANGELOG.md#notify-500-2022-08-28
2022-12-14 14:01:27 -08:00
Eric Huss
666975a1ef
Merge pull request #1884 from willcrichton/master
...
Add support for watching additional directories
2022-11-13 12:53:19 -08:00
Will Crichton
8b486dfc71
Fix compilation failure
2022-11-12 14:23:05 -08:00
Will Crichton
852a882fab
Improve error handling of extra-watch-dirs watching, fix not watching whitelisted files outside book root
2022-11-07 12:20:59 -08:00
Will Crichton
fb0cbc90e3
Add support for watching additional directories
2022-10-28 11:47:33 -07:00
Martin Geisler
3958260353
Simplify the use of `Option::and_then`
...
I found a few places where `Option::and_then` could be simplified (in
my opinion) with `?` or with `match`.
2022-09-11 00:46:26 +02:00
Chris Lovett
74eb4059d6
add a --chapter option to mdbook test. ( #1741 )
...
Sometimes when working on large books it is handy to be able to run mdbook on a single chapter of a book.
2022-08-25 19:13:51 -07:00
Eric Huss
1d2b720ebe
Always show the "serving on" info for `mdbook serve`.
2022-07-01 14:36:18 -07:00
ISSOtm
42129c6181
Always open index page with `serve --open`
2022-07-01 09:01:25 +02:00
ISSOtm
248863addf
Fix Clippy lints
...
Also remove `allow(clippy::*)`s where possible
2022-06-27 23:08:45 +02:00
josh rotenberg
c74c682939
call find_chapter when opening browser
2022-05-11 13:14:38 -07:00
josh rotenberg
8b49600673
call first_chapter
2022-05-10 11:19:23 -07:00
josh rotenberg
29c729fd23
call first_chapter
2022-05-10 11:17:20 -07:00
josh rotenberg
860a17d85a
Merge branch 'rust-lang:master' into draft-no-index
2022-04-04 18:59:39 -07:00
Eric Huss
7c37dd5e85
Merge pull request #1731 from epage/clap3
...
Port mdBook to clap3
2022-03-28 12:34:17 -07:00
Ed Page
857ca19fe4
refactor: Move from deprecated arg_from_usage
2022-03-28 13:06:50 -05:00
Ed Page
a19d91ef37
refactor: Move from deprecated multiple
2022-03-28 13:06:50 -05:00
Ed Page
ac8526688a
refactor: Move from deprecated empty_values
2022-03-28 13:06:50 -05:00
Ed Page
39eb78c88b
refactor: Move from deprecated SubCommand
2022-03-28 13:06:50 -05:00
Ed Page
372842aac6
refactor: Move from deprecated Arg::with_name
2022-03-28 13:06:50 -05:00
Ed Page
7934e06668
chore: Upgrade to clap3
2022-03-28 13:06:50 -05:00
Clark
6899d94027
livereload uses host&port of current page; livereload works with a HTTPS site
2022-03-19 04:38:16 +08:00
josh rotenberg
1cacef025d
check for the index.html file first
2021-12-28 21:00:06 -08:00
Eric Huss
56652e8fa6
Merge pull request #1559 from joshrotenberg/title_ignore_flags_init
...
Add --title option and --gitignore flag to mdbook init
2021-07-06 09:22:38 -07:00
josh rotenberg
8024b08f93
format
2021-07-04 12:00:13 -07:00
josh rotenberg
8ec0bf6e30
ignore now takes a value
2021-07-04 11:57:46 -07:00
josh rotenberg
86d390032b
drop short flags
2021-07-04 08:15:51 -07:00
josh rotenberg
e5e10c681a
add init flags
...
add init flags
update init command in guide
2021-05-31 20:47:51 -07:00
josh rotenberg
05edc4421b
clippy: PathBuf to Path
2021-05-31 20:27:52 -07:00
josh rotenberg
fcf8f938d2
use panic::set_hook to exit
2021-05-28 07:40:56 -07:00
Eric Huss
77e7cfd22b
Change `init --theme` to place theme in root. ( #1432 )
2021-01-07 01:29:38 +01:00
Eric Huss
f59cfe7e2f
Fix dest-dir command-line flag.
2020-06-23 10:55:01 -07:00
Manuel Woelker
d7df832cce
fix test and formatting
2020-06-10 15:33:09 +02:00
Manuel Woelker
406b325c54
fix usage of newly stablized inner_deref/as_deref
2020-06-10 13:09:18 +02:00
Manuel Woelker
06efa7a675
additional changes to the 404 mechanism based on feedback:
...
- removed config output_404
- ensure serve overrides the site url, and hosts the correct 404 file
- refactor 404 rendering into separate fn
- formatting
2020-06-10 12:46:23 +02:00
Manuel Woelker
cda28bb618
Generate 404.html page ( #539 )
2020-06-10 12:46:23 +02:00
Eric Huss
6c4c3448e3
Update dependencies. ( #1211 )
...
* Removed the itertools dependency
* Removed an unused feature flag
* Stubbed out a toml_query replacement
* Update dependencies.
* Bump env_logger.
* Use warp instead of iron for http server.
Iron does not appear to be maintained anymore. warp/hyper seems to be
reasonably maintained. Unfortunately this takes a few seconds more
to compile, but shouldn't be too bad.
One benefit is that there is no longer a need for a separate websocket
port, which makes it easier to run multiple servers at once.
* Update pulldown-cmark to 0.7
* Switch from error-chain to anyhow.
* Bump MSRV to 1.39.
* Update elasticlunr-rs.
Co-authored-by: Michael Bryan <michaelfbryan@gmail.com>
2020-05-20 23:32:00 +02:00
Dylan Owen
b6603468d6
Stop scrolling on socket reload
2019-11-12 18:06:11 -08:00
Steve Klabnik
f79d5d4582
rust-lang-nursery -> rust-lang
...
Fixes #1080
2019-10-29 08:04:16 -05:00
Amanjeev Sethi
74313bb701
Fix (command:clean): removes error message 'dir not found' if 'clean' is run multiple times (uses existing path variable)
2019-10-05 15:59:34 -04:00
Amanjeev Sethi
3c25dba9b4
Revert "Fix (command:clean): removes error message 'dir not found' if 'clean' is run multiple times"
...
This reverts commit 2387942588
.
2019-10-05 15:57:10 -04:00
Amanjeev Sethi
2387942588
Fix (command:clean): removes error message 'dir not found' if 'clean' is run multiple times
2019-10-05 15:01:01 -04:00
Kim Hermansson
930f730361
The .gitignore file is now searched for recursively.
...
Removed a warning if .gitignore is missing.
2019-10-04 22:56:56 +02:00