Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 92090aa

Browse files
committed
Merge pull request #631 from symfony-cmf/spelling
Spelling
2 parents 4403a0a + f8847e6 commit 92090aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+686
-537
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ language: python
33
python:
44
- "2.7"
55

6+
before_script:
7+
- sudo apt-get install enchant
8+
69
install: "pip install -q -r requirements.txt --use-mirrors"
710

8-
script: sphinx-build -nW -b html -d _build/doctrees . _build/html
11+
script:
12+
- sphinx-build -nW -b html -d _build/doctrees . _build/html
13+
- make spelling

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ help:
3737
@echo " changes to make an overview of all changed/added/deprecated items"
3838
@echo " linkcheck to check all external links for integrity"
3939
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
40+
@echo " spelling generate a spelling report"
4041

4142
clean:
4243
-rm -rf $(BUILDDIR)/*
@@ -151,3 +152,7 @@ doctest:
151152
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
152153
@echo "Testing of doctests in the sources finished, look at the " \
153154
"results in $(BUILDDIR)/doctest/output.txt."
155+
156+
spelling:
157+
$(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling
158+
@echo "Spelling report generated in $(BUILDDIR)/spelling/output.txt"

book/database_layer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ After this, you have to create getters and setters for the properties.
171171
This Document uses the parent document and a node name to determine its
172172
position in the tree. Because there isn't any name set, it is generated
173173
automatically. If you want to use a specific node name, such as a
174-
sluggified version of the title, you need to add a property mapped as
174+
slugified version of the title, you need to add a property mapped as
175175
``Nodename``.
176176

177177
A Document must have an id property. This represents the full path (parent
@@ -272,7 +272,7 @@ you've configured a route to display a specific task by name::
272272

273273
To retrieve objects from the document repository using both the ``find`` and
274274
``findMany`` methods and all helper methods of a class-specific repository. In
275-
PHPCR, it's often unkown for developers which node has the data for a specific
275+
PHPCR, it's often unknown for developers which node has the data for a specific
276276
document, in that case you should use the document manager to find the nodes
277277
(for instance, when you want to get the root document). In example above, we
278278
know they are ``Task`` documents and so we can use the repository.
@@ -294,7 +294,7 @@ The repository contains all sorts of helpful methods::
294294
.. tip::
295295

296296
If you use the repository class, you can also create a custom repository
297-
for a specific document. This helps with "Seperation of Concern" when using more
297+
for a specific document. This helps with "Separation of Concern" when using more
298298
complex queries. This is similar to how it's done in Doctrine ORM, for
299299
more information read "`Custom Repository Classes`_" in the core
300300
documentation.

book/handling_multilang.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ transparently.
1515
.. caution::
1616

1717
You also need the ``intl`` php extension installed and enabled (otherwise
18-
composer will tell you it can't find ext-intl). If you get issues that some
18+
composer will tell you it can't find ``ext-intl``). If you get issues that some
1919
locales can not be loaded, have a look at `this discussion about ICU`_.
2020

2121
Initial Language Choice: Lunetics LocaleBundle
@@ -56,7 +56,7 @@ Configuring Available Locales
5656
-----------------------------
5757

5858
The CoreBundle needs to be configure with the available locales. If it is
59-
not configured with locales, it registeres a listener that removes all
59+
not configured with locales, it registries a listener that removes all
6060
translation mapping from PHPCR-ODM documents.
6161

6262
.. configuration-block::

book/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Adding new pages
231231
Symfony CMF SE does not provide any admin tools to create new pages. If you
232232
are interested in adding an admin UI one solution can be found in
233233
:doc:`../tutorial/sonata-admin`. However, if all you want
234-
is a simple way to add new pages that you can then edit via the inline
234+
is a simple way to add new pages that you can then edit via the in-line
235235
editing, then you can use the SimpleCmsBundle ``page`` migrator. For example,
236236
to add a page called "Testing", creating a file called
237237
``app/Resources/data/pages/test.yml`` with the following contents:

book/routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,15 +497,15 @@ also ``/projects`` as there is a default for the id parameter.
497497

498498
.. caution::
499499

500-
As you can see, the code explicitely creates the ``/cms/routes`` path.
500+
As you can see, the code explicitly creates the ``/cms/routes`` path.
501501
The RoutingBundle only creates this path automatically if the Sonata Admin
502502
was enabled in the routing configuration using an :ref:`initializer
503503
<phpcr-odm-repository-initializers>`. Otherwise, it'll assume you do
504504
something yourself to create the path (by configuring an initializer or
505505
doing it in a fixture like this).
506506

507507
Because you defined the ``{id}`` route parameter, your controller can expect an
508-
``$id`` parameter. Additionally, because you called setRouteContent on the
508+
``$id`` parameter. Additionally, because you called ``setRouteContent`` on the
509509
route, your controller can expect the ``$contentDocument`` parameter.
510510
The content could be used to define an intro section that is the same for each
511511
project or other shared data. If you don't need content, you can just not set it

bundles/block/cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ is triggered:
139139
* Cache keys are computed using:
140140

141141
* The cache keys of the block service;
142-
* The extraCacheKeys passed from the template.
142+
* The ``extraCacheKeys`` passed from the template.
143143

144144
* The cache adapter is asked for a cache element:
145145

0 commit comments

Comments
 (0)