- Rename docforge.loader → docforge.loaders and docforge.model → docforge.models - Update all imports, type stubs, CLI, tests, and documentation references - Align MkDocs navigation and docforge.nav.yml with new package structure - Adjust module docstrings and comments for consistency with pluralized naming
27 lines
504 B
Python
27 lines
504 B
Python
from pathlib import Path
|
|
from typing import Protocol
|
|
|
|
from docforge.models 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."""
|