Skip to content

Commit e4bfb78

Browse files
committed
fix mermaid
1 parent 8d8d56c commit e4bfb78

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

ansibleplaybookgrapher/renderer/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def render(
7070
:param hide_empty_plays: Whether to hide empty plays or not when rendering the graph
7171
:param hide_plays_without_roles: Whether to hide plays without any roles or not
7272
:param kwargs:
73-
:return: The filename of the rendered file
73+
:return: The path of the rendered file
7474
"""
7575
pass
7676

ansibleplaybookgrapher/renderer/graphviz/__init__.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ def render(
5858
**kwargs,
5959
) -> str:
6060
"""
61-
:param hide_plays_without_roles:
62-
:return: The filename where the playbooks where rendered
61+
:param open_protocol_handler: The protocol handler name to use
62+
:param open_protocol_custom_formats: The custom formats to use when the protocol handler is set to custom
63+
:param output_filename: The output filename without any extension
64+
:param view: Whether to open the rendered file in the default viewer
65+
:param hide_empty_plays: Whether to hide empty plays or not when rendering the graph
66+
:param hide_plays_without_roles: Whether to hide plays without any roles or not
67+
:return: The path of the rendered file
6368
"""
6469
save_dot_file = kwargs.get("save_dot_file", False)
6570

ansibleplaybookgrapher/renderer/mermaid.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ def render(
5757
) -> str:
5858
"""
5959
60-
:param hide_plays_without_roles:
6160
:param open_protocol_handler: Not supported for the moment
6261
:param open_protocol_custom_formats: Not supported for the moment
6362
:param output_filename: The output filename without any extension
6463
:param view: Not supported for the moment
6564
:param hide_empty_plays: Whether to hide empty plays or not when rendering the graph
65+
:param hide_plays_without_roles: Whether to hide plays without any roles or not
66+
:param directive: Mermaid directive
67+
:param orientation: Mermaid graph orientation
6668
:param kwargs:
6769
:return:
6870
"""
@@ -95,7 +97,8 @@ def render(
9597
)
9698

9799
mermaid_code += playbook_builder.build_playbook(
98-
hide_empty_plays=hide_empty_plays
100+
hide_empty_plays=hide_empty_plays,
101+
hide_plays_without_roles=hide_plays_without_roles
99102
)
100103
link_order = playbook_builder.link_order
101104
roles_built.update(playbook_builder.roles_built)

0 commit comments

Comments
 (0)