File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
contributing/documentation Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,50 @@ The current list of supported formats are the following:
119
119
| php-annotations | Annotations |
120
120
+-----------------+-------------+
121
121
122
+ Adding Links
123
+ ~~~~~~~~~~~~
124
+
125
+ To add links to other pages in the documents use the following syntax:
126
+
127
+ .. code-block :: rst
128
+
129
+ :doc:`/path/to/page`
130
+
131
+ Using the path and filename of the page without the extension, for example:
132
+
133
+ .. code-block :: rst
134
+
135
+ :doc:`/book/controller`
136
+
137
+ :doc:`/components/event_dispatcher/introduction`
138
+
139
+ :doc:`/cookbook/configuration/environments`
140
+
141
+ The link text will be the main heading of the document linked to. You can
142
+ also specify alternative text for the link:
143
+
144
+ .. code-block :: rst
145
+
146
+ :doc:`Spooling Email</cookbook/email/spool>`
147
+
148
+ You can also add links to the API documentation:
149
+
150
+ .. code-block :: rst
151
+
152
+ :class:`Symfony\\Component\\Routing\\Matcher\\ApacheUrlMatcher`
153
+
154
+ :method:`Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build`
155
+
156
+ and to the PHP documentation:
157
+
158
+ .. code-block :: rst
159
+
160
+ :phpclass:`SimpleXMLElement`
161
+
162
+ :phpmethod:`DateTime::createFromFormat`
163
+
164
+ :phpfunction:`iterator_to_array`
165
+
122
166
Testing Documentation
123
167
~~~~~~~~~~~~~~~~~~~~~
124
168
You can’t perform that action at this time.
0 commit comments