feat: add font family configuration system with monospace option

This commit is contained in:
Wayne Sutton
2025-12-25 12:17:27 -08:00
parent 66c7f161bd
commit 6b776733d5
19 changed files with 421 additions and 37 deletions

View File

@@ -72,6 +72,7 @@ interface ForkConfig {
featuredViewMode?: "cards" | "list";
showViewToggle?: boolean;
theme?: "dark" | "light" | "tan" | "cloud";
fontFamily?: "serif" | "sans" | "monospace";
}
// Get project root directory
@@ -252,6 +253,14 @@ function updateSiteConfig(config: ForkConfig): void {
);
}
// Update fontFamily if specified
if (config.fontFamily) {
content = content.replace(
/fontFamily: ['"](?:serif|sans|monospace)['"],\s*\/\/ Options: "serif", "sans", or "monospace"/,
`fontFamily: "${config.fontFamily}", // Options: "serif", "sans", or "monospace"`,
);
}
// Update gitHubRepo config (for AI service raw URLs)
// Support both new gitHubRepoConfig and legacy githubUsername/githubRepo fields
const gitHubRepoOwner =