-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Copy link
Labels
enhancementNew feature or requestNew feature or requesttech/backendBack-end tools, code, infrastructureBack-end tools, code, infrastructure
Milestone
Description
Describe the solution you'd like
In ssvc.decision_tables.helpers, create a method like:
dt_to_mermaid(dt: DecisionTable) -> str:
"""
Given a decision table, generate a mermaid diagram that presents it as a tree.
"""that returns a mermaid block:
```mermaid flowchart LR ...etc... ```
- See Consider mermaid flowchart IR developed by Vulnetix for graphic display of output #862 for ideas.
Additional Context
Bonus round:
- Add a method in
ssvc.doc_helpersthat takes aDecisionTableobject as its argument and generates a tabbed example block inside a!!! notesimilar to howssvc.doc_helpers.example_blockdoes this for aDecisionPointobject.Lines 80 to 83 in 0e85eea
def example_block( dp: SsvcDecisionPoint, indent: int = 4, include_json: bool = True ) -> str: """Given a decision point, return a markdown block that contains an example of the decision point.""" - Update each of the markdown documentation pages for the known decision models to include this code generation block inside a
python exec="true" idprefix=""markdown block.
See for example
but for ssvc.decision_tables.ssvc.supplier_dt etc.
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttech/backendBack-end tools, code, infrastructureBack-end tools, code, infrastructure