File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
contributing/documentation Expand file tree Collapse file tree 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:
190190
191191 :doc:`environments`
192192
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+
193215 **Links to the API ** follow a different syntax, where you must specify the type
194216of the linked resource (``class `` or ``method ``):
195217
You can’t perform that action at this time.
0 commit comments