Initial Quartz setup for Castle Docs

This commit is contained in:
Patrick Mulligan 2026-01-01 11:16:51 +01:00
commit 222b641084
288 changed files with 36834 additions and 0 deletions

14
quartz/plugins/vfile.ts Normal file
View file

@ -0,0 +1,14 @@
import { Root as HtmlRoot } from "hast"
import { Root as MdRoot } from "mdast"
import { Data, VFile } from "vfile"
export type QuartzPluginData = Data
export type MarkdownContent = [MdRoot, VFile]
export type ProcessedContent = [HtmlRoot, VFile]
export function defaultProcessedContent(vfileData: Partial<QuartzPluginData>): ProcessedContent {
const root: HtmlRoot = { type: "root", children: [] }
const vfile = new VFile("")
vfile.data = vfileData
return [root, vfile]
}