- 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
19 lines
505 B
Python
19 lines
505 B
Python
from pathlib import Path
|
|
|
|
from docforge import MkDocsRenderer
|
|
from docforge.models import Project, Module
|
|
|
|
|
|
def test_mkdocs_directory_structure(tmp_path: Path):
|
|
project = Project("testpkg")
|
|
project.add_module(Module("testpkg"))
|
|
project.add_module(Module("testpkg.sub"))
|
|
|
|
out_dir = tmp_path / "docs"
|
|
renderer = MkDocsRenderer()
|
|
|
|
renderer.generate_sources(project, out_dir)
|
|
|
|
assert (out_dir / "testpkg" / "index.md").exists()
|
|
assert (out_dir / "testpkg" / "sub.md").exists()
|