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 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 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>>""" 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"}""" 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 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 :class:`AnsibleModule` and then retrieve the name of the syslog facility from
:attr:`AnsibleModule._syslog_facility`. The code will look slightly different :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 # Old way
import syslog import syslog