MutableMediaStorage
class MutableMediaStorage(options: MediaStorageOptions, nameProvider: MediaNameProviderStrategy = SanitizedMediaNameProvider()) : ReadOnlyMediaStorage
A media storage that can be modified with new entries.
Parameters
options
storage rules
nameProvider
strategy used to generate media names. The name of a media defines the file name in the output directory, hence this is the resource the document should refer to (e.g. images).
Constructors
Link copied to clipboard
constructor(options: MediaStorageOptions, nameProvider: MediaNameProviderStrategy = SanitizedMediaNameProvider())
Functions
Link copied to clipboard
Registers a media by its path. The corresponding media is resolved lazily from the path.
Link copied to clipboard
Resolves a media by its path.
Link copied to clipboard
Converts this storage to an OutputResource. This is used to export all media to the output directory. Ideally, this method returns an com.quarkdown.core.pipeline.output.OutputResourceGroup which contains all media inside of it.