Explorar o código

make the code samples syntactically correct

see https://github.com/sphinx-doc/sphinx/issues/2264
Should fix the build.
Grégoire Paris %!s(int64=9) %!d(string=hai) anos
pai
achega
ae892b3d7e

+ 6 - 6
Resources/doc/cookbook/recipe_sortable_listing.rst

@@ -49,13 +49,13 @@ Then we need to inject the Sortable listener. If you only have the Gedmo bundle
 
 .. code-block:: yaml
 
-	services:
+    services:
         gedmo.listener.sortable:
             class: Gedmo\Sortable\SortableListener
-        tags:
-            - { name: doctrine.event_subscriber, connection: default }
-        calls:
-            - [ setAnnotationReader, [ @annotation_reader ] ]
+            tags:
+                - { name: doctrine.event_subscriber, connection: default }
+            calls:
+                - [ setAnnotationReader, [ "@annotation_reader" ] ]
 
 
 If you have the ``stof/doctrine-extensions-bundle``, you only need to enable the sortable
@@ -194,7 +194,7 @@ And add the following call the ``admin.yml``
 	            - AppBundle\Entity\Client
 	            - 'PixSortableBehaviorBundle:SortableAdmin'
             calls:
-                 - [ setPositionService, [@pix_sortable_behavior.position]]
+                 - [ setPositionService, ["@pix_sortable_behavior.position"]]
 
 You should now have in your listing a new action column with 4 arrows to sort your records.
 

+ 3 - 3
Resources/doc/reference/advanced_configuration.rst

@@ -103,8 +103,8 @@ You have 2 ways of defining the dependencies inside ``services.xml``:
                 - AppBundle\Entity\Project
                 - ~
             calls:
-                - [ setLabelTranslatorStrategy, [ @sonata.admin.label.strategy.native ]]
-                - [ setRouteBuilder, [ @sonata.admin.route.path_info ]]
+                - [ setLabelTranslatorStrategy, [ "@sonata.admin.label.strategy.native" ]]
+                - [ setRouteBuilder, [ "@sonata.admin.route.path_info" ]]
 
 If you want to modify the service that is going to be injected, add the following code to your
 application's config file:
@@ -176,7 +176,7 @@ To create your own RouteBuilder create the PHP class and register it as a servic
             app.admin.entity_route_builder:
                 class: AppBundle\Route\EntityRouterBuilder
                 arguments:
-                    - @sonata.admin.audit.manager
+                    - "@sonata.admin.audit.manager"
 
 Inherited classes
 -----------------

+ 1 - 1
Resources/doc/reference/architecture.rst

@@ -229,7 +229,7 @@ which stores instances of ``FieldDescriptionInterface``. Picking up on our previ
         protected function configureShowFields(ShowMapper $showMapper)
         {
             $showMapper
-                ->add('id)
+                ->add('id')
                 ->add('title')
                 ->add('slug')
                 ->add('author')

+ 2 - 2
Resources/doc/reference/getting_started.rst

@@ -263,10 +263,10 @@ use the correct file extension):
         imports:
 
             # for xml
-            - { resource: @AppBundle/Resources/config/admin.xml }
+            - { resource: "@AppBundle/Resources/config/admin.xml" }
 
             # for yaml
-            - { resource: @AppBundle/Resources/config/admin.yml }
+            - { resource: "@AppBundle/Resources/config/admin.yml" }
 
 Configuration
 -------------

+ 1 - 1
Resources/doc/reference/preview_mode.rst

@@ -129,7 +129,7 @@ Hiding the fieldset tags with css ``display:none`` will be enough to only show t
 
 Or if you prefer less:
 
-.. code-block:: sass
+.. code-block:: scss
 
     div.sonata-preview-form-container {
         .row {