Fix docs syntax highlighting errors (#50836)

* Add support for [WARNING]: ...

* Fix unreachable/failed output lexing.

* Detecting retry/--limit lines.

* Removing strange (invisible) characters which cause lexing problems.

* Using better-fitting lexers.

* Improve YAML lexing: don't accept quotes in keys.

* Add Django lexer (unchanged) from Pygments.

* Add support for != and % operators.
This commit is contained in:
Felix Fontein 2019-01-24 23:09:41 +01:00 committed by Alicia Cozine
commit f6122fb63b
9 changed files with 164 additions and 35 deletions

View file

@ -193,10 +193,14 @@ Create a file named ``scaleway_inventory.yml`` with the following content:
This inventory means that we want all hosts that got the tag ``web_server`` on the zones ``ams1`` and ``par1``.
Once you have configured this file, you can get the information using the following command:
::
.. code-block:: bash
$ ansible-inventory --list -i scaleway_inventory.yml
The output will be:
.. code-block:: yaml
{
"_meta": {
"hostvars": {
@ -251,7 +255,7 @@ As the Scaleway API is S3 compatible, Ansible supports it natively through the m
You can find many examples in ``./test/legacy/roles/scaleway_s3``
.. code-block:: yaml
.. code-block:: yaml+jinja
- hosts: myserver
vars: