If you wish to copy assets, just give the Assets Generator the paths you want copied over. This is done with the
following snippet in your
sourceDirs key of the
assets generator configuration block defines a list of directories to copy assets from
into the output site. These directories are copyied recursively, and the assets are compiled against their file
extension and given the same path as they exist on disk.
This is useful for things like adding your own images and being able to host and reference them from the Orchid site.
Images and other binary file types are copied directly without any modification, but any files that can be compiled will
be compiled before being copied to the output. Many binary file types are supported by default, but if you find a binary
asset is being corrupted in the process, you can add its extension to the following configuration snippet in
binaryExtensions should be an array with each item being the file extension which should be recognized as binary.
Extra CSS and JS
The following snippet can be included in a Page's front matter or within a component configuration and will have the same effect in each, which is to find and compile the referenced assets and add it the containing page:
Extra CSS and JS may also be added to the Theme configuration, with the effect of being added to all pages using that theme.