mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix documentation about examples in modules so folks use the new style.
This commit is contained in:
@@ -353,15 +353,10 @@ syntax highlighting before you include it in your Python file.
|
||||
Example
|
||||
+++++++
|
||||
|
||||
Here's a correctly formatted YAML document we could use for a
|
||||
``DOCUMENTATION`` string:
|
||||
To print a basic documentation string, run ``./hacking/module_formatter.py -G``.
|
||||
|
||||
.. literalinclude:: ../../examples/DOCUMENTATION.yaml
|
||||
|
||||
This is available in the 'examples/' directory of the of the Ansible
|
||||
github repository, and you can have that generated with
|
||||
``./hacking/module_formatter.py -G``. You can copy it into your module and use
|
||||
it as a starting point when writing your own docs.
|
||||
You can copy it into your module and use it as a starting point
|
||||
when writing your own docs.
|
||||
|
||||
Include it in your module file like this::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user