Path:
strictdoc/features/project_index/generator.py
Lines:
28
Non-empty lines:
23
Non-empty lines covered with requirements:
23 / 23 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
1
"""2
@relation(SDOC-SRS-53, scope=file)3
"""4
5
from markupsafe import Markup
6
7
from strictdoc.core.project_config import ProjectConfig
8
from strictdoc.core.traceability_index import TraceabilityIndex
9
from strictdoc.export.html.html_templates import HTMLTemplates
10
from strictdoc.features.project_index.view_object import (
11
ProjectTreeViewObject,
12
)13
14
15
class DocumentTreeHTMLGenerator:
16
@staticmethod17
def export(
18
project_config: ProjectConfig,
19
traceability_index: TraceabilityIndex,
20
html_templates: HTMLTemplates,
21
) -> Markup:
22
assert isinstance(html_templates, HTMLTemplates)
23
24
view_object = ProjectTreeViewObject(
25
traceability_index=traceability_index,
26
project_config=project_config,
27
)28
return view_object.render_screen(html_templates.jinja_environment())