diff --git a/Resources/doc/faq.rst b/Resources/doc/faq.rst index 6d12540..4cecf61 100644 --- a/Resources/doc/faq.rst +++ b/Resources/doc/faq.rst @@ -130,14 +130,20 @@ A: The assets normally are installed by composer if any command event (usually ` Re-add Google Fonts ------------------- -Q: How can I re-add Google Fonts? +Q: How can I change the font for the UI? -A: Create a override template file inside your project and add the following content: +A: We removed the google fonts in 3.3 to avoid the external request for GDPR reasons. To change the font, you can :doc:`customize the template ` to add this style information: .. code-block:: twig {# templates/bundles/NelmioApiDocBundle/SwaggerUI/index.html.twig #} - + + {# + To avoid a "reached nested level" error an exclamation mark `!` has to be added + See https://symfony.com/blog/new-in-symfony-3-4-improved-the-overriding-of-templates + #} + {% extends '@!NelmioApiDoc/SwaggerUi/index.html.twig' %} + {% block stylesheets %} {{ parent() }}