@@ -67,10 +67,30 @@ def option_default(name, rawtext, text, lineno, inliner, options={}, content=[])
6767 return [nodes .literal (rawtext , text , classes = ['ansible-option-default' ])], []
6868
6969
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+
7089ROLES = {
7190 'ansible-option-choices-entry' : option_choice ,
7291 'ansible-option-choices-entry-default' : option_choice_default ,
7392 'ansible-option-default' : option_default ,
93+ 'ansible-rv-sample-value' : return_value_sample ,
7494}
7595
7696
0 commit comments