@@ -67,10 +67,30 @@ def option_default(name, rawtext, text, lineno, inliner, options={}, content=[])
67
67
return [nodes .literal (rawtext , text , classes = ['ansible-option-default' ])], []
68
68
69
69
70
+ # pylint:disable-next=unused-argument,dangerous-default-value
71
+ def return_value_sample (name , rawtext , text , lineno , inliner , options = {}, content = []):
72
+ """Format Ansible return value sample value.
73
+
74
+ Returns 2 part tuple containing list of nodes to insert into the
75
+ document and a list of system messages. Both are allowed to be
76
+ empty.
77
+
78
+ :param name: The role name used in the document.
79
+ :param rawtext: The entire markup snippet, with role.
80
+ :param text: The text marked with the role.
81
+ :param lineno: The line number where rawtext appears in the input.
82
+ :param inliner: The inliner instance that called us.
83
+ :param options: Directive options for customization.
84
+ :param content: The directive content for customization.
85
+ """
86
+ return [nodes .literal (rawtext , text , classes = ['ansible-option-sample' ])], []
87
+
88
+
70
89
ROLES = {
71
90
'ansible-option-choices-entry' : option_choice ,
72
91
'ansible-option-choices-entry-default' : option_choice_default ,
73
92
'ansible-option-default' : option_default ,
93
+ 'ansible-rv-sample-value' : return_value_sample ,
74
94
}
75
95
76
96
0 commit comments