To make this work you have to wrap the code blocks in a ``configuration-block`` directive like this:

```rst
.. configuration-block::

    .. code-block:: yaml

    .. code-block:: xml

    .. code-block:: php
```