27 lines
503 B
Python
27 lines
503 B
Python
from pathlib import Path
|
|
from typing import Protocol
|
|
|
|
from docforge.model import Project
|
|
|
|
|
|
class RendererConfig:
|
|
"""Renderer configuration container."""
|
|
|
|
out_dir: Path
|
|
project: Project
|
|
|
|
def __init__(self, out_dir: Path, project: Project) -> None: ...
|
|
|
|
|
|
class DocRenderer(Protocol):
|
|
"""Renderer interface."""
|
|
|
|
name: str
|
|
|
|
def generate_sources(
|
|
self,
|
|
project: Project,
|
|
out_dir: Path,
|
|
) -> None:
|
|
"""Generate renderer-specific source files."""
|