File tree 1 file changed +22
-0
lines changed
contributing/documentation
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,28 @@ If you want to modify that title, use this alternative syntax:
190
190
191
191
:doc:`environments`
192
192
193
+ It is also possible to link to a specific section, instead of a whole page.
194
+ First, define a target above section you will link to:
195
+
196
+ .. code-block :: rst
197
+
198
+ # /service_container/autowiring.rst
199
+
200
+ # Define the target
201
+ .. _autowiring-calls:
202
+
203
+ Autowiring other Methods (e.g. Setters and Public Typed Properties)
204
+ -------------------------------------------------------------------
205
+ [section content ...]
206
+
207
+ Then create reference to link to that section from another file:
208
+
209
+ .. code-block :: rst
210
+
211
+ # /reference/attributes.rst
212
+
213
+ :ref:`Required <autowiring-calls>`
214
+
193
215
**Links to the API ** follow a different syntax, where you must specify the type
194
216
of the linked resource (``class `` or ``method ``):
195
217
You can’t perform that action at this time.
0 commit comments