rename mkdocs.py to mkdocs_renderer.py

This commit is contained in:
2026-01-21 16:04:02 +05:30
parent b1544c9610
commit 9a5e356039
11 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
from pathlib import Path
from docforge import MkDocsRenderer
from docforge.models import Project, Module
def test_mkdocs_file_content(tmp_path: Path):
project = Project("testpkg")
project.add_module(Module("testpkg.mod"))
out_dir = tmp_path / "docs"
renderer = MkDocsRenderer()
renderer.generate_sources(project, out_dir)
content = (out_dir / "testpkg" / "mod.md").read_text()
assert "# Mod" in content
assert "::: testpkg.mod" in content