Mark the image files for copying.

This commit is contained in:
Tom Alexander
2025-02-08 19:23:19 -05:00
parent ff478253c3
commit bf7f37260c
3 changed files with 21 additions and 5 deletions

View File

@@ -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))
}
}