add config structure
This commit is contained in:
parent
9106bc72fb
commit
8fe55bf3f4
3 changed files with 67 additions and 8 deletions
|
@ -1 +1,28 @@
|
|||
from dataclasses import dataclass, field
|
||||
|
||||
|
||||
@dataclass
|
||||
class MarkdownConfig:
|
||||
image_labels: bool = True
|
||||
|
||||
|
||||
@dataclass
|
||||
class ThemeConfig:
|
||||
name: str = "default"
|
||||
syntax_highlighting: bool = True
|
||||
|
||||
|
||||
@dataclass
|
||||
class BuildConfig:
|
||||
clean_output_dir: bool = True
|
||||
include_drafts: bool = False
|
||||
|
||||
|
||||
@dataclass
|
||||
class ZonaConfig:
|
||||
title: str = "Zona Blog"
|
||||
base_url: str = "https://example.com"
|
||||
language: str = "en"
|
||||
markdown: MarkdownConfig = field(default_factory=MarkdownConfig)
|
||||
theme: ThemeConfig = field(default_factory=ThemeConfig)
|
||||
build: BuildConfig = field(default_factory=BuildConfig)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue