Set up Doxygen for Interface and domain server C++ code

This commit is contained in:
David Rowe 2021-05-11 22:21:36 +12:00
parent a33b0fbad3
commit 3020123459
4 changed files with 2730 additions and 0 deletions

2665
tools/doxygen/Doxyfile Normal file

File diff suppressed because it is too large Load diff

56
tools/doxygen/README.md Normal file
View file

@ -0,0 +1,56 @@
# C++ Documentation Generation
[Doxygen](https://www.doxygen.nl/) is used for generating documentation on parts of the C++ code.
## Prerequisites
**Doxygen** ≥ 3.9.1 - https://www.doxygen.nl/
**Perl** ≥ 5.14 - http://strawberryperl.com/
Make a `/build/doxygen/` directory.
If you want to run Doxygen from a command prompt, add the Doxygen install's `/bin` directory to your system PATH.
## Running
### Using the Doxywizard GUI
In the Doxywizard program:
- File > Open `/tools/doxygen/Doxyfile`.
- In the "Run" tab, click the "Run Doxygen" button.
- Once it has compiled the documentation (this may take a while), click "Show HTML Output" to view the documentation generated.
### From a command prompt
Change to the `/tools/doxygen/` directory.
```
doxygen Doxyfile
```
Output files are generated in a `/build/docs/html/` directory. See the `index.html` file there.
### Tips
- The source code directory listed in the "Wizard" tab is only one of the directories scanned. For the full list, see the
"Expert" tab's input category's settings.
- The output directory is **not** wiped each time you run Doxygen, so you may want to periodically clear it out if you're
finding it contains old, unwanted files.
- If you want to iterate on a particular part of the documentation, you can temporarily change the "Source code directory"
option in the "Wizard" tab of the Doxywizard program.
## Altering the Doxygen configuration
Most easily accomplished by using the Doxyfile GUI and using it to write a new `Libraries.Doxyfile` file.
Alternatively, you can edit the `Libraries.Doxyfile` file in a text editor.
## References
- [Doxygen Web Site](https://www.doxygen.nl/)
- [Doxygen Tutorial](https://embeddedinventor.com/doxygen-tutorial-getting-started-using-doxygen-on-windows/)
- [Complete Guide On Using Doxygen](https://embeddedinventor.com/guide-to-configure-doxygen-to-document-c-source-code-for-beginners/)

View file

@ -0,0 +1,9 @@
# Filter out JSDoc comments by transforming them to ordinary comments.
# (JSDoc comments are used to generate the user API docs and don't produce suitable results for the C++ docs.)
while (<>) {
if (m/^\s*\/\*\*jsdoc/) {
print "\/*\n";
} else {
print;
}
}

BIN
tools/doxygen/vircadia.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB