Merge pull request #737 from mattico/update-deps-easy
Update dependencies
This commit is contained in:
commit
775377acce
File diff suppressed because it is too large
Load Diff
|
@ -37,8 +37,6 @@ toml-query = "0.7"
|
|||
|
||||
# Watch feature
|
||||
notify = { version = "4.0", optional = true }
|
||||
time = { version = "0.1.34", optional = true }
|
||||
crossbeam = { version = "0.3", optional = true }
|
||||
|
||||
# Serve feature
|
||||
iron = { version = "0.6", optional = true }
|
||||
|
@ -63,7 +61,7 @@ default = ["output", "watch", "serve", "search"]
|
|||
debug = []
|
||||
output = []
|
||||
regenerate-css = []
|
||||
watch = ["notify", "time", "crossbeam"]
|
||||
watch = ["notify"]
|
||||
serve = ["iron", "staticfile", "ws"]
|
||||
search = ["elasticlunr-rs", "ammonia"]
|
||||
|
||||
|
|
|
@ -370,10 +370,12 @@ impl Renderer for HtmlHandlebars {
|
|||
.chain_err(|| "Unable to copy across additional CSS and JS")?;
|
||||
|
||||
// Render search index
|
||||
#[cfg(feature = "search")] {
|
||||
let search = html_config.search.unwrap_or_default();
|
||||
if cfg!(feature = "search") && search.enable {
|
||||
if search.enable {
|
||||
super::search::create_files(&search, &destination, &book)?;
|
||||
}
|
||||
}
|
||||
|
||||
// Copy all remaining files
|
||||
utils::fs::copy_files_except_ext(&src_dir, &destination, true, &["md"])?;
|
||||
|
|
Loading…
Reference in New Issue