castle-docs/quartz.config.ts
Padreug dde60746ab Open external links in a new tab
Sets openLinksInNewTab: true on the CrawlLinks transformer so readers
don't lose their place in the docs when they follow a citation.
2026-05-20 15:32:06 +02:00

95 lines
2.5 KiB
TypeScript

import { QuartzConfig } from "./quartz/cfg"
import * as Plugin from "./quartz/plugins"
/**
* Quartz 4 Configuration
*
* See https://quartz.jzhao.xyz/configuration for more information.
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "Castle Docs",
pageTitleSuffix: "",
enableSPA: true,
enablePopovers: true,
analytics: null, // Disable analytics for now
locale: "en-US",
baseUrl: "docs.ariege.io",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "modified",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
header: "Schibsted Grotesk",
body: "Source Sans Pro",
code: "IBM Plex Mono",
},
colors: {
lightMode: {
light: "#f5ecd9",
lightgray: "#d9cdb4",
gray: "#a8997b",
darkgray: "#4a3e2a",
dark: "#2b2316",
secondary: "#b8552e",
tertiary: "#6b8048",
highlight: "rgba(107, 128, 72, 0.15)",
textHighlight: "#e8b54066",
},
darkMode: {
light: "#1c1f1a",
lightgray: "#3a3d33",
gray: "#7a7361",
darkgray: "#e0d4b8",
dark: "#f4ead2",
secondary: "#d97a55",
tertiary: "#9bb87a",
highlight: "rgba(155, 184, 122, 0.15)",
textHighlight: "#e8b54066",
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "git", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {
light: "github-light",
dark: "github-dark",
},
keepBackground: false,
}),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest", openLinksInNewTab: true }),
Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }),
],
filters: [Plugin.RemoveDrafts()],
emitters: [
Plugin.AliasRedirects(),
Plugin.ComponentResources(),
Plugin.ContentPage(),
Plugin.FolderPage(),
Plugin.TagPage(),
Plugin.ContentIndex({
enableSiteMap: true,
enableRSS: true,
}),
Plugin.Assets(),
Plugin.Static(),
Plugin.Favicon(),
Plugin.NotFoundPage(),
// Comment out CustomOgImages to speed up build time
Plugin.CustomOgImages(),
],
},
}
export default config