build_all_assets

build_all_assets(config: Config | str | Path, log_function: Callable[(Ellipsis, None)] = <function print>, recurse_folder: bool = True) list[Path][source]

Build all assets based on the provided configuration.

This can be used in the built script when using source distributions.

Parameters:
  • config (Config) – Configuration to use for building assets. If a path is passed it will try to find the config.

  • log_function (Callable[..., None]) – Function used to print log messages. Defaults to rich.print

  • recurse_folder (bool) – Whether or not to recurse directories searching for files. Defaults to True

Returns:

List of generated files.

Return type:

list[Path]

See also

load_config