Eric Huss
02b6628048
Finish move of config to mdbook-core
...
This updates everything for the move of config to mdbook-core. There
will be followup commits that will be moving and refactoring the config.
This simply moves it over unchanged.
2025-07-23 17:29:55 -07:00
Eric Huss
fc76a47d6e
Finish move of utils to mdbook-core
...
This updates everything for the move of utils to mdbook-core. There will
be followup commits that will be moving and refactoring these utils.
This simply moves them over unchanged (except visibility).
2025-07-23 17:29:55 -07:00
Eric Huss
f51d89ba02
Move error types to mdbook-core
...
This moves Result and Error to mdbook-core with the anticipation of
using them in user crates. For now, the internal APIs will be using
anyhow directly, but the intent is to transition more of these to
mdbook-core where it makes sense.
2025-07-23 17:29:55 -07:00
Eric Huss
c7b67e363b
Rustfmt for 2024
2025-07-23 17:29:12 -07:00
Jelmer Vernooij
8e579072b8
Replace warp with axum
...
warp is problematic for Debian, since it has some outdated dependencies. Upstream is also fairly dormant.
2025-07-14 15:00:34 -07:00
David Campbell
abf3e4ab50
Display what is removed from mdbook clean.
...
This is based off of [cargo's][1] clean command. cargo is licensed
under MIT or Apache-2.0.
[1]: https://github.com/rust-lang/cargo
2024-11-22 15:10:51 -05:00
eureka-cpu
8f024dabc3
fix init --title option failure when git user is not configured
2024-11-18 11:10:11 -08:00
Hamir Mahal
1fd9656291
style: simplify string formatting for readability
2024-09-21 15:53:59 -07:00
Eric Huss
965f7bde0d
Fix dead_code warning for arg_watcher
2024-05-16 17:38:52 -07:00
Eric Huss
f3e85da9a7
Add a poll-based file watcher.
2024-05-13 13:14:22 -07:00
Eric Huss
5bc87d5c17
Apply a few minor clippy fixes
2024-05-13 12:13:50 -07:00
Eric Huss
0cc439eee3
Fix redundant imports.
2024-02-24 12:04:57 -08:00
Eric Huss
8d4193fb46
Merge pull request #2229 from leonzchang/fix/normalize-path
...
Fix `mdbook serve` unexpected panic
2023-11-29 22:16:39 +00:00
leonzchang
8d4ae388fa
update comment
2023-11-29 11:51:23 +08:00
leonzchang
7082689866
add comment
2023-11-29 11:50:07 +08:00
leonzchang
40c034ed3f
apply suggest changes
2023-11-29 11:34:08 +08:00
leonzchang
b0a001c6a4
create relative path through ignore root and path
2023-11-08 13:35:35 +08:00
leonzchang
722c55f85f
normalize path to relative
2023-11-01 12:33:13 +08:00
leonzchang
fbb629c02e
normalize path in watch cmd
2023-10-31 12:13:25 +08:00
Aron Heinecke
079f52a191
upgrade to notify 6.1.1 and watcher-mini 4.1
2023-08-21 20:28:56 +02:00
riverbl
e00b8835cc
Fix issues with extra-watch-dirs
...
Fix paths specified in extra-watch-dirs being relative to the current working directory rather than the book root
If there is an error canonicalising paths in extra-watch-dirs, log the error and exit rather than panicking
2023-07-28 20:07:20 +01:00
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