瀏覽代碼

make the code samples syntactically correct

see https://github.com/sphinx-doc/sphinx/issues/2264
Should fix the build.
Grégoire Paris 9 年之前
父節點
當前提交
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
 .. code-block:: yaml
 
 
-	services:
+    services:
         gedmo.listener.sortable:
         gedmo.listener.sortable:
             class: Gedmo\Sortable\SortableListener
             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
 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
 	            - AppBundle\Entity\Client
 	            - 'PixSortableBehaviorBundle:SortableAdmin'
 	            - 'PixSortableBehaviorBundle:SortableAdmin'
             calls:
             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.
 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
                 - AppBundle\Entity\Project
                 - ~
                 - ~
             calls:
             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
 If you want to modify the service that is going to be injected, add the following code to your
 application's config file:
 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:
             app.admin.entity_route_builder:
                 class: AppBundle\Route\EntityRouterBuilder
                 class: AppBundle\Route\EntityRouterBuilder
                 arguments:
                 arguments:
-                    - @sonata.admin.audit.manager
+                    - "@sonata.admin.audit.manager"
 
 
 Inherited classes
 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)
         protected function configureShowFields(ShowMapper $showMapper)
         {
         {
             $showMapper
             $showMapper
-                ->add('id)
+                ->add('id')
                 ->add('title')
                 ->add('title')
                 ->add('slug')
                 ->add('slug')
                 ->add('author')
                 ->add('author')

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

@@ -263,10 +263,10 @@ use the correct file extension):
         imports:
         imports:
 
 
             # for xml
             # for xml
-            - { resource: @AppBundle/Resources/config/admin.xml }
+            - { resource: "@AppBundle/Resources/config/admin.xml" }
 
 
             # for yaml
             # for yaml
-            - { resource: @AppBundle/Resources/config/admin.yml }
+            - { resource: "@AppBundle/Resources/config/admin.yml" }
 
 
 Configuration
 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:
 Or if you prefer less:
 
 
-.. code-block:: sass
+.. code-block:: scss
 
 
     div.sonata-preview-form-container {
     div.sonata-preview-form-container {
         .row {
         .row {