parent
2448157db0
commit
1be941bce6
|
@ -21,7 +21,10 @@ impl Preprocessor for LastChanged {
|
||||||
log::debug!("Git root: {}", git_root.display());
|
log::debug!("Git root: {}", git_root.display());
|
||||||
|
|
||||||
let repository_url = match ctx.config.get("output.html.git-repository-url") {
|
let repository_url = match ctx.config.get("output.html.git-repository-url") {
|
||||||
None => return Ok(book),
|
None => {
|
||||||
|
log::error!("mdbook-last-changed was called, but no `output.html.git-repository-url` configured. Book is left unchanged.");
|
||||||
|
return Ok(book);
|
||||||
|
}
|
||||||
Some(url) => url,
|
Some(url) => url,
|
||||||
};
|
};
|
||||||
let repository_url = match repository_url {
|
let repository_url = match repository_url {
|
||||||
|
|
Loading…
Reference in New Issue