A pipline that copies files from the source directory to the build site (unless already excluded) while renaming the file based on a hash of the contents, thus allowing them to be versioned.
The new filename is put in the context so later pipes (eg Jinja2 templates) can use it.
Pass:
extensions - a list of file extensions that will be copied eg ["js", "css"]. You can pass an empty list to copy all files.
source_sub_directory - if your files are in a subdirectory pass that here. Any files outside that will be ignored and the subdirectory will not appear in the build directory. eg pass "assets" and "assets/main.css" will appear in build site as "main.css"
context_key - the key in the context that new filenames will be stored in
directories - Only items in these directories and their children will be copied.
No Info.
No Info.
No Info.