You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A complete list of `@xxx` commands can be found at http://www.doxygen.nl/manual/commands.html.
@@ -157,44 +166,73 @@ To describe a class, use the same construct above the class definition:
157
166
* @see GetWarnings()
158
167
*/
159
168
class CAlert
160
-
{
161
169
```
162
170
163
171
To describe a member or variable use:
164
172
```c++
165
-
int var; //!< Detailed description after the member
173
+
//! Description before the member
174
+
int var;
166
175
```
167
176
168
177
or
169
178
```c++
170
-
//! Description before the member
171
-
int var;
179
+
int var; //!< Description after the member
172
180
```
173
181
174
182
Also OK:
175
183
```c++
176
184
///
177
-
/// ... text ...
185
+
/// ... Description ...
178
186
///
179
187
boolfunction2(int arg1, const char *arg2)
180
188
```
181
189
182
-
Not OK (used plenty in the current source, but not picked up):
190
+
Not picked up by Doxygen:
183
191
```c++
184
192
//
185
-
// ... text ...
193
+
// ... Description ...
186
194
//
187
195
```
188
196
197
+
Also not picked up by Doxygen:
198
+
```c++
199
+
/*
200
+
* ... Description ...
201
+
*/
202
+
```
203
+
189
204
A full list of comment syntaxes picked up by Doxygen can be found at http://www.doxygen.nl/manual/docblocks.html,
190
205
but the above styles are favored.
191
206
192
-
Documentation can be generated with `make docs` and cleaned up with `make clean-docs`. The resulting files are located in `doc/doxygen/html`; open `index.html` to view the homepage.
207
+
Recommendations:
193
208
194
-
Before running `make docs`, you will need to install dependencies `doxygen` and `dot`. For example, on macOS via Homebrew:
195
-
```
196
-
brew install graphviz doxygen
197
-
```
209
+
- Avoiding duplicating type and input/output information in function
210
+
descriptions.
211
+
212
+
- Use backticks (``) to refer to `argument` names in function and
213
+
parameter descriptions.
214
+
215
+
- Backticks aren't required when referring to functions Doxygen already knows
216
+
about; it will build hyperlinks for these automatically. See
217
+
http://www.doxygen.nl/manual/autolink.html for complete info.
218
+
219
+
- Avoid linking to external documentation; links can break.
220
+
221
+
- Javadoc and all valid Doxygen comments are stripped from Doxygen source code
222
+
previews (`STRIP_CODE_COMMENTS = YES` in [Doxyfile.in](doc/Doxyfile.in)). If
223
+
you want a comment to be preserved, it must instead use `//` or `/* */`.
224
+
225
+
### Generating Documentation
226
+
227
+
The documentation can be generated with `make docs` and cleaned up with `make
228
+
clean-docs`. The resulting files are located in `doc/doxygen/html`; open
229
+
`index.html` in that directory to view the homepage.
230
+
231
+
Before running `make docs`, you'll need to install these dependencies:
0 commit comments