Pi66

merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi

src/modules.py

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from dataclasses import dataclass

@dataclass
class Project:
    name: str
    version: str
    description: str

@dataclass
class Tree:
    markdown: str
    static: str
    templates: str
    draft_dest: str
    release_dest: str
    plugins: str

@dataclass
class Webview:
    host: str
    port: int
    dev_tools: str
    html_path: str
    static_path: str

@dataclass
class Extras:
    highlight: str

@dataclass
class Cache:
    hash: str

@dataclass
class Config:
    project: Project
    tree: Tree
    webview: Webview
    extras: Extras
    cache: Cache