fix relative path resolution in router and link crawling

This commit is contained in:
Jacky Zhao
2023-08-16 22:04:15 -07:00
parent 232652149a
commit 2f6747b166
44 changed files with 160 additions and 106 deletions

17
quartz/util/ctx.ts Normal file
View File

@ -0,0 +1,17 @@
import { QuartzConfig } from "../cfg"
import { ServerSlug } from "./path"
export interface Argv {
directory: string
verbose: boolean
output: string
serve: boolean
port: number
concurrency?: number
}
export interface BuildCtx {
argv: Argv
cfg: QuartzConfig
allSlugs: ServerSlug[]
}