module is source flag to ensure for single source modules it's not treated as a module but root

This commit is contained in:
2026-02-21 21:03:49 +05:30
parent a2ebd7d19b
commit 5149034d19
6 changed files with 69 additions and 17 deletions

View File

@@ -1,19 +1,23 @@
from pathlib import Path
from typing import Set
from docforge.models import Project, Module
class MkDocsRenderer:
name: str
def generate_sources(self, project: Project, out_dir: Path) -> None: ...
def generate_sources(
self,
project: Project,
out_dir: Path,
module_is_source: bool | None = None,
) -> None: ...
def _write_module(
self,
module: Module,
packages: Set[str],
packages: set[str],
out_dir: Path,
module_is_source: bool | None = None,
) -> None: ...
def _render_markdown(self, title: str, module_path: str) -> str: ...