Mark the image files for copying.
This commit is contained in:
@@ -153,17 +153,17 @@ impl LinkTarget {
|
||||
.canonicalize()?;
|
||||
let input_root_directory = render_context.config.get_root_directory();
|
||||
let relative_path_to_file = path_to_file.strip_prefix(input_root_directory)?;
|
||||
dbg!(input_root_directory);
|
||||
dbg!(&path_to_file);
|
||||
dbg!(relative_path_to_file);
|
||||
let web_path = get_web_path(
|
||||
render_context.config,
|
||||
render_context.output_root_directory,
|
||||
render_context.output_file,
|
||||
relative_path_to_file,
|
||||
)?;
|
||||
dbg!(&web_path);
|
||||
// TODO: Record interest in copying the file to output.
|
||||
let path_to_file = render_context
|
||||
.dependency_manager
|
||||
.lock()
|
||||
.unwrap()
|
||||
.mark_file_for_copying(path_to_file)?;
|
||||
Ok(Some(web_path))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user