Skip to content

Commit e079296

Browse files
authored
feature: suppot live server mode #12
add watch command to suppot live server mode
2 parents 6cfaba9 + b621dee commit e079296

File tree

7 files changed

+260
-41
lines changed

7 files changed

+260
-41
lines changed

Cargo.lock

Lines changed: 152 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ zip = "0.6"
2121
warp = "0.3"
2222
tokio = { version = "1", features = ["full"] }
2323
serde_json = "1.0"
24+
notify = "6.1.1"
25+
notify-debouncer-mini = "0.4.1"
2426

2527

2628
[package.metadata]

src/cli/args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The commands are:
2323
init Initialize to working directory
2424
serve Serve starting the static http server
2525
build Builder static html file and output to book
26+
watch Watch the file changes and rebuild the book
2627
2728
Use typikon help <command> for more information about a command.
2829
";

0 commit comments

Comments
 (0)