mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
feat: add font family configuration system with monospace option
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user