Graphviz is recommended to be installed to provide the dot command that can be used by Doxygen to generate diagrams showing class relationship.
cd /path/to/project
doxygen -g # generate configuration file Doxyfile
vi Doxyfile # tune settings
doxygen Doxyfile # generate documents according to settings in Doxyfile
The configuration file Doxyfile
generated above is very long since it contains a lot of comments. If you want to put it under version control, it is better to strip off all the comments using the s
option:
# update existing Doxyfile and strip off all comments in it
doxygen -s -u Doxyfile
The following setup needs to be enabled to use dot to generate diagrams:
HAVE_DOT = YES
The following setup needs to be set to NO in order not to include into the generated documents the absolute file path, which is likely to be different in different developer’s local disk.
FULL_PATH_NAMES = NO
main
function will not be automatically documented. One has to explicitly include the fn
keyword in the comment block before it. Moreover, the file that contains the main
function has to be documented as well, otherwise, the main
function documentation won’t appear in the generated web pages. The easiest way to document a file is to simply add the file
keyword in it.This can only be achieved by enabling all the three options below:
EXTRACT_ALL = YES
SOURCE_BROWSER = YES
INLINE_SOURCES = YES
INPUT = README.md src/
USE_MDFILE_AS_MAINPAGE = README.md
Activities mentions in this site have been supported by the following grants: