mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-02 23:08:14 +00:00
format
This commit is contained in:
parent
9e83af04a7
commit
55a1fb8c41
6 changed files with 9 additions and 25 deletions
quartz/processors
|
@ -84,11 +84,8 @@ function addGlobalPageResources(
|
|||
}
|
||||
}
|
||||
|
||||
export async function emitContent(
|
||||
ctx: BuildCtx,
|
||||
content: ProcessedContent[],
|
||||
) {
|
||||
const { argv, cfg }= ctx
|
||||
export async function emitContent(ctx: BuildCtx, content: ProcessedContent[]) {
|
||||
const { argv, cfg } = ctx
|
||||
const contentFolder = argv.directory
|
||||
const perf = new PerfTimer()
|
||||
const log = new QuartzLogger(ctx.argv.verbose)
|
||||
|
@ -125,12 +122,7 @@ export async function emitContent(
|
|||
// emitter plugins
|
||||
for (const emitter of cfg.plugins.emitters) {
|
||||
try {
|
||||
const emitted = await emitter.emit(
|
||||
ctx,
|
||||
content,
|
||||
staticResources,
|
||||
emit,
|
||||
)
|
||||
const emitted = await emitter.emit(ctx, content, staticResources, emit)
|
||||
emittedFiles += emitted.length
|
||||
|
||||
if (ctx.argv.verbose) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue