Skip to content

Commit

Permalink
feat: move from notify v4 to notify-debouncer-full (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamorphen authored and Keats committed Jun 20, 2024
1 parent f480867 commit 5b3a57b
Show file tree
Hide file tree
Showing 6 changed files with 306 additions and 112 deletions.
88 changes: 66 additions & 22 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ clap_complete = "4"
hyper = { version = "0.14.1", default-features = false, features = ["runtime", "server", "http2", "http1"] }
tokio = { version = "1.0.1", default-features = false, features = ["rt", "fs", "time"] }
time = { version = "0.3", features = ["formatting", "macros", "local-offset"] }
notify = "4"
notify-debouncer-full = "0.3"
ws = "0.9"
ctrlc = "3"
open = "5"
Expand Down
6 changes: 6 additions & 0 deletions components/site/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ pub struct Site {
pub live_reload: Option<u16>,
pub output_path: PathBuf,
content_path: PathBuf,
pub sass_path: PathBuf,
pub static_path: PathBuf,
pub templates_path: PathBuf,
pub taxonomies: Vec<Taxonomy>,
/// A map of all .md files (section and pages) and their permalink
/// We need that if there are relative links in the content that need to be resolved
Expand Down Expand Up @@ -82,7 +84,9 @@ impl Site {
let shortcode_definitions = utils::templates::get_shortcodes(&tera);

let content_path = path.join("content");
let sass_path = path.join("sass");
let static_path = path.join("static");
let templates_path = path.join("templates");
let imageproc = imageproc::Processor::new(path.to_path_buf(), &config);
let output_path = path.join(config.output_dir.clone());

Expand All @@ -94,7 +98,9 @@ impl Site {
live_reload: None,
output_path,
content_path,
sass_path,
static_path,
templates_path,
taxonomies: Vec::new(),
permalinks: HashMap::new(),
include_drafts: false,
Expand Down
Loading

0 comments on commit 5b3a57b

Please sign in to comment.