Skip to content

Commit 85332b2

Browse files
authored
Merge pull request #615 from FriendsOfSymfony/fix-interlinking
fix readthedocs interlinking and some reference bugs
2 parents d69e764 + b645406 commit 85332b2

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Resources/doc/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
extensions = [
1515
'sphinxcontrib.spelling',
1616
'sphinx_rtd_theme',
17+
"sphinx.ext.intersphinx",
1718
]
1819

1920
# Spelling configuration
@@ -197,7 +198,7 @@
197198

198199
# --------------
199200

200-
intersphinx_mapping = {'foshttpcache': ('http://foshttpcache.readthedocs.org/en/latest/', None)}
201+
intersphinx_mapping = {'foshttpcache': ('http://foshttpcache.readthedocs.io/en/latest/', None)}
201202

202203
rst_epilog = """
203204
.. _expressions: https://symfony.com/doc/current/components/expression_language.html

Resources/doc/includes/expression-language.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
**type**: ``string``
55

66
If your application is using a `custom expression language`_ which is extended
7-
from Symfony's `expression language component`_, you can `define it as a service`_
8-
and include it in the configuration.
7+
from Symfony's `expression language component`_, you need to `define it as a service`_
8+
and configure it as `expression_language` in the sections where you want to use it.
99

1010
.. _expression language component: https://symfony.com/doc/current/components/expression_language.html
1111
.. _define it as a service: https://symfony.com/doc/current/controller/service.html

Resources/doc/overview.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ And , if you don't use a recent version of Symfony, include it in your project::
7171
ExpressionLanguage
7272
~~~~~~~~~~~~~~~~~~
7373

74-
If you wish to use expressions_ in your annotations , you also need Symfony’s
74+
If you wish to use expressions in your annotations , you also need Symfony’s
7575
ExpressionLanguage_ component. If you’re not using full-stack Symfony 2.4 or
7676
later, you need to explicitly add the component:
7777

Resources/doc/reference/configuration/tags.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ unsafe requests.
137137
**type**: ``array``
138138

139139
You can dynamically refer to request attributes using
140-
:ref:`expressions <expression language requirement>`. Assume a route
140+
:ref:`expressions <requirements>`. Assume a route
141141
``/articles/{id}``. A request to path ``/articles/123`` will set/invalidate
142142
tag ``articles-123`` with the following configuration:
143143

src/DependencyInjection/Configuration.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ private function addTagSection(ArrayNodeDefinition $rootNode)
809809
->booleanNode('strict')->defaultFalse()->end()
810810
->scalarNode('expression_language')
811811
->defaultNull()
812-
->info('Service name of a custom ExpressionLanugage to use.')
812+
->info('Service name of a custom ExpressionLanguage to use.')
813813
->end()
814814
->scalarNode('response_header')
815815
->defaultNull()
@@ -831,7 +831,7 @@ private function addTagSection(ArrayNodeDefinition $rootNode)
831831
->ifTrue(function ($v) {
832832
return !empty($v['tag_expressions']) && !class_exists(ExpressionLanguage::class);
833833
})
834-
->thenInvalid('Configured a tag_expression but ExpressionLanugage is not available')
834+
->thenInvalid('Configured a tag_expression but ExpressionLanguage is not available')
835835
->end()
836836
->children()
837837
;
@@ -864,7 +864,7 @@ private function addInvalidationSection(ArrayNodeDefinition $rootNode)
864864
->end()
865865
->scalarNode('expression_language')
866866
->defaultNull()
867-
->info('Service name of a custom ExpressionLanugage to use.')
867+
->info('Service name of a custom ExpressionLanguage to use.')
868868
->end()
869869
->arrayNode('rules')
870870
->info('Set what requests should invalidate which target routes.')

0 commit comments

Comments
 (0)