mirror of https://github.com/ansible/ansible.git
Add support for plugin field in seealso. (#80212)
parent
054aa92158
commit
b398613120
@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- "ansible-doc text output - support ``seealso`` plugin record that was added for filter and test plugin documentation (https://github.com/ansible/ansible/pull/80212)."
|
||||||
@ -0,0 +1,51 @@
|
|||||||
|
> TESTNS.TESTCOL.YOLO (./collections/ansible_collections/testns/testcol/plugins/test/yolo.yml)
|
||||||
|
|
||||||
|
This is always true
|
||||||
|
|
||||||
|
OPTIONS (= is mandatory):
|
||||||
|
|
||||||
|
= _input
|
||||||
|
does not matter
|
||||||
|
type: raw
|
||||||
|
|
||||||
|
|
||||||
|
SEE ALSO:
|
||||||
|
* Module ansible.builtin.test
|
||||||
|
The official documentation on the
|
||||||
|
ansible.builtin.test module.
|
||||||
|
https://docs.ansible.com/ansible-core/devel/collectio
|
||||||
|
ns/ansible/builtin/test_module.html
|
||||||
|
* Module testns.testcol.fakemodule
|
||||||
|
A fake module
|
||||||
|
* Lookup plugin testns.testcol.noop
|
||||||
|
* Filter plugin testns.testcol.grouped
|
||||||
|
A grouped filter.
|
||||||
|
* Filter plugin ansible.builtin.combine
|
||||||
|
The official documentation on the
|
||||||
|
ansible.builtin.combine filter plugin.
|
||||||
|
https://docs.ansible.com/ansible-core/devel/collectio
|
||||||
|
ns/ansible/builtin/combine_filter.html
|
||||||
|
* Lookup plugin ansible.builtin.file
|
||||||
|
Read a file on the controller.
|
||||||
|
https://docs.ansible.com/ansible-core/devel/collectio
|
||||||
|
ns/ansible/builtin/file_lookup.html
|
||||||
|
* Ansible docsite
|
||||||
|
See also the Ansible docsite.
|
||||||
|
https://docs.ansible.com
|
||||||
|
* Ansible documentation [foo_bar]
|
||||||
|
Some foo bar.
|
||||||
|
https://docs.ansible.com/ansible-
|
||||||
|
core/devel/#stq=foo_bar&stp=1
|
||||||
|
|
||||||
|
|
||||||
|
NAME: yolo
|
||||||
|
|
||||||
|
EXAMPLES:
|
||||||
|
|
||||||
|
{{ 'anything' is yolo }}
|
||||||
|
|
||||||
|
|
||||||
|
RETURN VALUES:
|
||||||
|
- output
|
||||||
|
always true
|
||||||
|
type: boolean
|
||||||
@ -0,0 +1,64 @@
|
|||||||
|
{
|
||||||
|
"testns.testcol.yolo": {
|
||||||
|
"doc": {
|
||||||
|
"collection": "testns.testcol",
|
||||||
|
"description": [
|
||||||
|
"This is always true"
|
||||||
|
],
|
||||||
|
"filename": "./collections/ansible_collections/testns/testcol/plugins/test/yolo.yml",
|
||||||
|
"name": "yolo",
|
||||||
|
"options": {
|
||||||
|
"_input": {
|
||||||
|
"description": "does not matter",
|
||||||
|
"required": true,
|
||||||
|
"type": "raw"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"seealso": [
|
||||||
|
{
|
||||||
|
"module": "ansible.builtin.test"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "A fake module",
|
||||||
|
"module": "testns.testcol.fakemodule"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"plugin": "testns.testcol.noop",
|
||||||
|
"plugin_type": "lookup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "A grouped filter.",
|
||||||
|
"plugin": "testns.testcol.grouped",
|
||||||
|
"plugin_type": "filter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"plugin": "ansible.builtin.combine",
|
||||||
|
"plugin_type": "filter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Read a file on the controller.",
|
||||||
|
"plugin": "ansible.builtin.file",
|
||||||
|
"plugin_type": "lookup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "See also the Ansible docsite.",
|
||||||
|
"link": "https://docs.ansible.com",
|
||||||
|
"name": "Ansible docsite"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Some foo bar.",
|
||||||
|
"ref": "foo_bar"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"short_description": "you only live once"
|
||||||
|
},
|
||||||
|
"examples": "{{ 'anything' is yolo }}\n",
|
||||||
|
"metadata": null,
|
||||||
|
"return": {
|
||||||
|
"output": {
|
||||||
|
"description": "always true",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue