1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix block highlighting

Found out that we change the default highlighting to yaml.
So explicitly mark python code blocks as such.
This commit is contained in:
Toshio Kuratomi 2017-01-06 12:33:00 -08:00
parent ebc8b927ce
commit 1be3ac36df

View file

@ -86,11 +86,11 @@ JSONARGS
Scripts can arrange for an argument string to be placed within them by placing
the string ``<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>`` somewhere inside of the
file. The module typically sets a variable to that value like this::
file. The module typically sets a variable to that value like this:: python
json_arguments = """<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>"""
Which is expanded as::
Which is expanded as:: python
json_arguments = """{"param1": "test's quotes", "param2": "\"To be or not to be\" - Hamlet"}"""
@ -456,7 +456,9 @@ modules should just use :meth:`AnsibleModule.log` which will then make use of
this. If a module has to use this on its own, it should instantiate an
:class:`AnsibleModule` and then retrieve the name of the syslog facility from
:attr:`AnsibleModule._syslog_facility`. The code will look slightly different
than it did under :ref:`module_replacer` due to how hacky the old way was::
than it did under :ref:`module_replacer` due to how hacky the old way was
:: python
# Old way
import syslog