fix relative path resolution in router and link crawling
This commit is contained in:
		
							
								
								
									
										17
									
								
								quartz/util/ctx.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								quartz/util/ctx.ts
									
									
									
									
									
										Normal 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[]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user