import { page } from "$app/state"; import type { MarkupContext } from "#lib/markup/paths.ts"; export const repoMarkupContext = (repo: string, ref: string, dir?: string): MarkupContext => ({ repo, ref, dir: dir || undefined, host: page.url.host, camo: page.data.publicConfig?.camoEnabled ?? false });