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