@droppedcode/typedoc-plugin-copy-assets
Version:
This plugin for typedoc copies the assets found in comments to the output assets folder.
42 lines (41 loc) • 1.36 kB
TypeScript
/**
* Options for the copy assets plugin.
*/
export interface CopyAssetsOptions {
/**
* Copy only image assets (e.g. ``).
* @default true
*/
onlyImages: boolean;
/**
* List of regex strings to check to include in the copied assets based on the full match.
* Undefined will copy everything.
*/
include?: string[];
/**
* List of regex strings to check to exclude from the copied assets based on the full match.
* This removes items allowed by the include list.
* Undefined will copy everything.
*/
exclude?: string[];
/**
* List of regex strings to check to include in the copied assets based on the path match.
* Undefined will copy everything.
*/
includePath?: string[];
/**
* List of regex strings to check to exclude from the copied assets based on the path match.
* This removes items allowed by the include list.
* Undefined will copy everything.
*/
excludePath?: string[];
/**
* Copy image html tag sources (e.g. `<img src="path/to/image.png" alt="Image" />`).
* @default false
*/
copyHtmlImgTag?: boolean;
}
/** Default option values. */
export declare const defaultOptions: CopyAssetsOptions;
/** Key of the options in the options file. */
export declare const optionsKey: string;