Skip to content

Commit

Permalink
feature: suppot live server mode #12
Browse files Browse the repository at this point in the history
add watch command to suppot live server mode
  • Loading branch information
auula authored Sep 19, 2024
2 parents 6cfaba9 + b621dee commit e079296
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 41 deletions.
181 changes: 152 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ zip = "0.6"
warp = "0.3"
tokio = { version = "1", features = ["full"] }
serde_json = "1.0"
notify = "6.1.1"
notify-debouncer-mini = "0.4.1"


[package.metadata]
Expand Down
1 change: 1 addition & 0 deletions src/cli/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The commands are:
init Initialize to working directory
serve Serve starting the static http server
build Builder static html file and output to book
watch Watch the file changes and rebuild the book
Use typikon help <command> for more information about a command.
";
Expand Down
Loading

0 comments on commit e079296

Please sign in to comment.