35
35
| Description | No tag. Use one blank line to separate the description |
36
36
| | from the brief. |
37
37
+-------------------+--------------------------------------------------------+
38
- | Tutorial | | ``@tutorial: `` |
39
- | | | ``@tutorial(The Title Here): `` |
38
+ | Tutorial | | ``@tutorial: https://url.com `` |
39
+ | | | ``@tutorial(The Title Here): https://url.com `` |
40
40
+-------------------+--------------------------------------------------------+
41
- | Deprecated | ``@deprecated `` |
41
+ | Deprecated | | ``@deprecated `` |
42
+ | | | ``@deprecated: Use [AnotherClass] instead. `` |
42
43
+-------------------+--------------------------------------------------------+
43
- | Experimental | ``@experimental `` |
44
+ | Experimental | | ``@experimental `` |
45
+ | | | ``@experimental: This class is unstable. `` |
44
46
+-------------------+--------------------------------------------------------+
45
47
46
48
For example::
@@ -51,8 +53,8 @@ For example::
51
53
## The description of the script, what it can do,
52
54
## and any further detail.
53
55
##
54
- ## @tutorial: https://the/tutorial1/ url.com
55
- ## @tutorial(Tutorial2 ): https://the/tutorial2/ url.com
56
+ ## @tutorial: https://url.com/tutorial_1
57
+ ## @tutorial(Tutorial 2 ): https://url.com/tutorial_2
56
58
## @experimental
57
59
58
60
.. warning ::
@@ -86,18 +88,20 @@ the double hash symbol ``##`` to be considered as part of the documentation.
86
88
Tags
87
89
~~~~
88
90
89
- +--------------+-------------------+
90
- | Description | No tag. |
91
- +--------------+-------------------+
92
- | Deprecated | ``@deprecated `` |
93
- +--------------+-------------------+
94
- | Experimental | ``@experimental `` |
95
- +--------------+-------------------+
91
+ +--------------+--------------------------------------------------+
92
+ | Description | No tag. |
93
+ +--------------+--------------------------------------------------+
94
+ | Deprecated | | ``@deprecated `` |
95
+ | | | ``@deprecated: Use [member another] instead. `` |
96
+ +--------------+--------------------------------------------------+
97
+ | Experimental | | ``@experimental `` |
98
+ | | | ``@experimental: This method is incomplete. `` |
99
+ +--------------+--------------------------------------------------+
96
100
97
101
For example::
98
102
99
103
## The description of the variable.
100
- ## @deprecated
104
+ ## @deprecated: Use [member other_var] instead.
101
105
var my_var
102
106
103
107
Alternatively, you can use inline documentation comments::
@@ -134,8 +138,8 @@ Complete script example
134
138
## The description of the script, what it can do,
135
139
## and any further detail.
136
140
##
137
- ## @tutorial: https://the/tutorial1/ url.com
138
- ## @tutorial(Tutorial2 ): https://the/tutorial2/ url.com
141
+ ## @tutorial: https://url.com/tutorial_1
142
+ ## @tutorial(Tutorial 2 ): https://url.com/tutorial_2
139
143
## @experimental
140
144
141
145
## The description of a constant.
@@ -186,7 +190,7 @@ Complete script example
186
190
## The same rules apply here. The documentation must
187
191
## immediately precede the class definition.
188
192
##
189
- ## @tutorial: https://the/tutorial/ url.com
193
+ ## @tutorial: https://url.com/tutorial
190
194
## @experimental
191
195
class Inner:
192
196
@@ -202,9 +206,10 @@ Complete script example
202
206
203
207
You can mark a class or any of its members as deprecated or experimental.
204
208
This will add the corresponding indicator in the built-in documentation viewer.
209
+ Optionally, you can provide a short message explaining why the API is not recommended.
205
210
This can be especially useful for plugin and library creators.
206
211
207
- .. image :: img/deprecated_and_experimental_marks .webp
212
+ .. image :: img/deprecated_and_experimental_tags .webp
208
213
209
214
- **Deprecated ** marks a non-recommended API that is subject to removal or incompatible change
210
215
in a future major release. Usually the API is kept for backwards compatibility.
0 commit comments