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

Commit 24b55d0

Browse files
committed
Added spell checker
- Added spell checker target using sphinxcontrib-spelling
1 parent 27a6b76 commit 24b55d0

Some content is hidden

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

47 files changed

+310
-154
lines changed

.travis.yml

+6-1
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

+5
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

+3-3
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -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

+1-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -496,15 +496,15 @@ also ``/projects`` as there is a default for the id parameter.
496496

497497
.. caution::
498498

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

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

bundles/block/cache.rst

+1-1
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

bundles/block/introduction.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ to the `SonataBlockBundle`_ to make it work nicely. This is done using the
136136
`prepended configuration`_ option of Symfony. The following defaults are
137137
updated:
138138

139-
* **templates.block_base** the cmf base template wraps the block output in
140-
a div and dashifies the PHPCR path as id; The base template is
139+
* **templates.block_base** the CMF base template wraps the block output in
140+
a ``div`` and slugifies the PHPCR path as id; The base template is
141141
kept compatible with the Sonata base template for non-cmf blocks;
142142
* **RssBlock configuration** adds the
143143
:ref:`default RssBlock settings <bundle-block-rss-settings>`.

bundles/block/relation_to_sonata_block_bundle.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Relation to Sonata Block Bundle
44
The Symfony2 CMF BlockBundle is based on the `SonataBlockBundle`_. It replaces
55
components of the SonataBlockBundle where needed to be compatible with PHPCR.
66

7-
Classdiagram
8-
------------
7+
Class Diagram
8+
-------------
99

1010
The following diagram shows the components the Symfony CMF BlockBundle replaces
1111
in blue color:

bundles/block/types.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ examples to build your own blocks.
99
You can also :doc:`create your own blocks <create_your_own_blocks>`, but
1010
the provided block types should cover many standard cases.
1111

12-
Common Behaviour
13-
----------------
12+
Common Behavior
13+
---------------
1414

15-
There is an ``AbstractBlock`` base class that defines common behaviour for all
15+
There is an ``AbstractBlock`` base class that defines common behavior for all
1616
blocks provided by this bundle. It also implements handling for locales, even
1717
though only those block that actually contain string content implement the
1818
``TranslatableInterface``.
@@ -212,7 +212,7 @@ The controller used to fetch the feed items can also be changed:
212212

213213
* Define a different class for the controller service in your configuration
214214
using the DI service parameter ``cmf_block.rss_controller_class``
215-
* or set the actionName of your RssBlock document
215+
* or set the ``actionName`` of your ``RssBlock`` document
216216

217217
.. note::
218218

@@ -360,7 +360,7 @@ Make the Slideshow Work in the Front-End
360360
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
361361

362362
Since the BlockBundle doesn't contain anything to make the slideshow work
363-
in the front-end, you need to do this yourself. Use your favourite JavaScript
363+
in the front-end, you need to do this yourself. Use your favorite JavaScript
364364
library to make the slideshow interactive. If special markup is needed for
365365
your slideshow code to work, you can override
366366
``BlockBundle:Block:block_slideshow.html.twig`` and/or the templates of the

bundles/content/introduction.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ to multiple routes and menu items. A simple page can be created like this::
5050
$documentManager->flush(); // save changes
5151

5252
This code adds a ``/hello`` route and a ``hello-world`` content document, both
53-
connected to eachother. This means visiting ``/hello`` should give you the
53+
connected to each other. This means visiting ``/hello`` should give you the
5454
content of ``hello-world``. But before that, the correct controller needs to
5555
be configured.
5656

bundles/core/publish_workflow.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ is met, but if a single voter returns ``ACCESS_DENIED``, the content is
265265
considered not published.
266266

267267
You can also implement your :ref:`own voters <bundle-core-workflow-custom-voters>`
268-
for additional publication behaviour.
268+
for additional publication behavior.
269269

270270
PublishableVoter
271271
................

0 commit comments

Comments
 (0)