Prechádzať zdrojové kódy

Applied some comments

WouterJ 10 rokov pred
rodič
commit
d8a9871e17

+ 17 - 11
Resources/doc/getting_started/installation.rst

@@ -15,8 +15,7 @@ following command to download the latest stable version of this bundle:
     $ composer require sonata-project/admin-bundle "2.3.*"
 
 This command requires you to have Composer installed globally, as explained in
-the `installation chapter <https://getcomposer.org/doc/00-intro.md>`_ of the
-Composer documentation.
+the `installation chapter`_ of the Composer documentation.
 
 1.1. Download a Storage Bundle
 ------------------------------
@@ -26,10 +25,10 @@ functionality, it needs storage bundles to be able to communicate with a
 database. Before using the SonataAdminBundle, you have to download one of these
 storage bundles. The official storage bundles are:
 
-* `SonataDoctrineORMAdminBundle <http://sonata-project.org/bundles/doctrine-orm-admin/master/doc/index.html>`_ (integrates the Doctrine ORM);
-* `SonataDoctrineMongoDBAdminBundle <http://sonata-project.org/bundles/mongo-admin/master/doc/index.html>`_ (integrates the Doctrine MongoDB ODM);
-* `SonataPropelAdminBundle <http://sonata-project.org/bundles/propel-admin/master/doc/index.html>`_ (integrates Propel);
-* `SonataDoctrinePhpcrAdminBundle <http://sonata-project.org/bundles/doctrine-phpcr-admin/master/doc/index.html>`_ (integrates the Doctrine PHPCR ODM).
+* `SonataDoctrineORMAdminBundle`_ (integrates the Doctrine ORM);
+* `SonataDoctrineMongoDBAdminBundle`_ (integrates the Doctrine MongoDB ODM);
+* `SonataPropelAdminBundle`_ (integrates Propel);
+* `SonataDoctrinePhpcrAdminBundle`_ (integrates the Doctrine PHPCR ODM).
 
 You can download them in the same way as the SonataAdminBundle. For instance,
 to download the SonataDoctrineORMAdminBundle, execute the following command:
@@ -89,11 +88,11 @@ line in the `app/AppKernel.php` file of your project:
 
 .. note::
 
-    Since version 2.3, SonatajQueryBundle is not required anymore as assets are
-    available in this bundle. The bundle also uses `Bower <http://bower.io/>`_,
-    so you can use bower to handle your assets. To make sure you get the
-    dependencies that match the version of SonataAdminBundle you are using, you
-    can make bower use the local bower dependency file, like this:
+    Since version 2.3, the bundle comes with jQuery and other front-end libs.
+    To update the versions (which isn't required), you can use `Bower`_. To
+    make sure you get the dependencies that match the version of
+    SonataAdminBundle you are using, you can make bower use the local bower
+    dependency file, like this:
 
     .. code-block:: bash
 
@@ -165,3 +164,10 @@ server, you can now visit the admin page on http://localhost:8000/admin
 As you can see, the admin panel is very empty. This is because no bundle has
 provided admin functionality for the admin bundle yet. Fortunately, you'll
 learn how to do this in the :doc:`next chapter <creating_an_admin>`.
+
+.. _`installation chapter`: https://getcomposer.org/doc/00-intro.md
+.. _SonataDoctrineORMAdminBundle: http://sonata-project.org/bundles/doctrine-orm-admin/master/doc/index.html
+.. _SonataMongoDBAdminBundle: http://sonata-project.org/bundles/mongo-admin/master/doc/index.html
+.. _SonataPropelAdminBundle: http://sonata-project.org/bundles/propel-admin/master/doc/index.html
+.. _SonataDoctrinePhpcrAdminBundle: http://sonata-project.org/bundles/doctrine-phpcr-admin/master/doc/index.html
+.. _Bower: http://bower.io/

+ 5 - 6
Resources/doc/getting_started/the_form_view.rst

@@ -60,7 +60,7 @@ Configuring the Form Mapper
 ---------------------------
 
 If you already know the `Symfony Form component`_, the ``FormMapper`` will look
-very similair.
+very similar.
 
 You use the ``add()`` method to add fields to the form. The first argument is
 the name of the property the field value maps to, the second argument is the
@@ -237,12 +237,11 @@ After pressing the "Create" button, you probably see a green message like:
 successfully created.*
 
 While it's very friendly of the SonataAdminBundle to notify the admin of a
-succesful creation, the classname and some sort of hash aren't really nice to
+successful creation, the classname and some sort of hash aren't really nice to
 read. This is the default string representation of an object in the
-SonataAdminBundle. You can change it by defining a ``__toString()`` magic
-method on your model or by defining a ``toString()`` (note: no underscore
-prefix) method in the Admin class. This recieves the object to transform to a
-string as the first parameter:
+SonataAdminBundle. You can change it by defining a ``toString()`` (note: no
+underscore prefix) method in the Admin class. This receives the object to
+transform to a string as the first parameter:
 
 .. code-block:: php
 

+ 1 - 1
Resources/doc/getting_started/the_list_view.rst

@@ -3,5 +3,5 @@ The List View
 
 You've given the admin a nice interface to create and edit blog posts and
 categories. But there is not much to change if the admin doesn't have a list of
-all available blog posts. Because of this, this chapter will learn you more
+all available blog posts. Because of this, this chapter will teach you more
 about the list view.