mirror of
https://github.com/alrayyes/wiki.git
synced 2025-04-30 22:24:14 +00:00
rendering, link resolution, asset copying
This commit is contained in:
parent
ad6ce0d73f
commit
21c007e2fc
19 changed files with 564 additions and 274 deletions
quartz/plugins
|
@ -15,20 +15,15 @@ export abstract class QuartzFilterPlugin {
|
|||
}
|
||||
|
||||
export interface EmitOptions {
|
||||
// meta
|
||||
title: string
|
||||
description: string
|
||||
slug: string
|
||||
ext: `.${string}`
|
||||
|
||||
// rendering related
|
||||
content: string
|
||||
}
|
||||
|
||||
export type EmitCallback = (data: EmitOptions) => Promise<void>
|
||||
export type EmitCallback = (data: EmitOptions) => Promise<string>
|
||||
export abstract class QuartzEmitterPlugin {
|
||||
abstract name: string
|
||||
abstract emit(content: ProcessedContent[], emitCallback: EmitCallback): Promise<string[]>
|
||||
abstract emit(content: ProcessedContent[], resources: StaticResources, emitCallback: EmitCallback): Promise<string[]>
|
||||
}
|
||||
|
||||
export interface PluginTypes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue