mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-01 14:38:14 +00:00
inline scripts
This commit is contained in:
parent
fcd81353f8
commit
4bdc17d4a1
19 changed files with 187 additions and 69 deletions
quartz/plugins
|
@ -2,6 +2,7 @@ import { PluggableList } from "unified"
|
|||
import { StaticResources } from "../resources"
|
||||
import { ProcessedContent } from "./vfile"
|
||||
import { GlobalConfiguration } from "../cfg"
|
||||
import { QuartzComponent } from "../components/types"
|
||||
|
||||
export abstract class QuartzTransformerPlugin {
|
||||
abstract name: string
|
||||
|
@ -25,6 +26,7 @@ export type EmitCallback = (data: EmitOptions) => Promise<string>
|
|||
export abstract class QuartzEmitterPlugin {
|
||||
abstract name: string
|
||||
abstract emit(cfg: GlobalConfiguration, content: ProcessedContent[], resources: StaticResources, emitCallback: EmitCallback): Promise<string[]>
|
||||
abstract getQuartzComponents(): QuartzComponent<any>[]
|
||||
}
|
||||
|
||||
export interface PluginTypes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue