Fix NelmioApiDocBundle view customization instructions (#1419)

* Fix NelmioApiDocBundle view customization instructions

"Just create a file..." was not OK (missing views/ subdirectory, wrong SwaggerUi case)
The path showcased as code-block's first row was OK

* View customization instructions: remove unnecessary /views/ subdirectory
This commit is contained in:
Quentin Stoeckel 2018-10-19 20:11:39 +02:00 committed by Guilhem N
parent 9bae1115d6
commit 48aaca92e3

View File

@ -13,11 +13,11 @@ This allows to change the title, the header, add additional or replace existing
Take a look at the Twig documentation `how to extend templates <https://twig.symfony.com/doc/2.x/tags/extends.html>`_.
The following example will add additional scripts and a custom style to the template.
Just create a file ``templates/bundles/NelmioApiDocBundle/SwaggerUI/index.html.twig``.
Just create a file ``templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig``.
.. code-block:: twig
{# templates/bundles/NelmioApiDocBundle/views/SwaggerUi/index.html.twig #}
{# templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig #}
{#
To avoid a "reached nested level" error an exclamation mark `!` has to be added