Skip to content

Commit 5b3a57b

Browse files
iamorphenKeats
authored andcommitted
feat: move from notify v4 to notify-debouncer-full (#2503)
1 parent f480867 commit 5b3a57b

6 files changed

Lines changed: 306 additions & 112 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ clap_complete = "4"
2626
hyper = { version = "0.14.1", default-features = false, features = ["runtime", "server", "http2", "http1"] }
2727
tokio = { version = "1.0.1", default-features = false, features = ["rt", "fs", "time"] }
2828
time = { version = "0.3", features = ["formatting", "macros", "local-offset"] }
29-
notify = "4"
29+
notify-debouncer-full = "0.3"
3030
ws = "0.9"
3131
ctrlc = "3"
3232
open = "5"

components/site/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ pub struct Site {
5252
pub live_reload: Option<u16>,
5353
pub output_path: PathBuf,
5454
content_path: PathBuf,
55+
pub sass_path: PathBuf,
5556
pub static_path: PathBuf,
57+
pub templates_path: PathBuf,
5658
pub taxonomies: Vec<Taxonomy>,
5759
/// A map of all .md files (section and pages) and their permalink
5860
/// We need that if there are relative links in the content that need to be resolved
@@ -82,7 +84,9 @@ impl Site {
8284
let shortcode_definitions = utils::templates::get_shortcodes(&tera);
8385

8486
let content_path = path.join("content");
87+
let sass_path = path.join("sass");
8588
let static_path = path.join("static");
89+
let templates_path = path.join("templates");
8690
let imageproc = imageproc::Processor::new(path.to_path_buf(), &config);
8791
let output_path = path.join(config.output_dir.clone());
8892

@@ -94,7 +98,9 @@ impl Site {
9498
live_reload: None,
9599
output_path,
96100
content_path,
101+
sass_path,
97102
static_path,
103+
templates_path,
98104
taxonomies: Vec::new(),
99105
permalinks: HashMap::new(),
100106
include_drafts: false,

0 commit comments

Comments
 (0)