This section provides answers to commonly asked questions about Doxygen. Please begin by familiarizing yourself with the Doxygen coding style.
Expand AUTOSAR macros
By setting the following in the configuration file:
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
PREDEFINED = "FUNC(rettype,memclass)=rettype" \
"VAR(type,memclass)=type" \
"P2VAR(ptrtype,memclass,ptrclass)=ptrtype *"Learn more
Add a Markdown file as the main page
-
Enable Markdown support in your Doxyfile.
-
Specify the Markdown file using the
USE_MDFILE_AS_MAINPAGEoption. -
Make sure the Markdown file is included in the
INPUTconfiguration.
MARKDOWN_SUPPORT = YES
USE_MDFILE_AS_MAINPAGE = README.md
INPUT = README.mdIf your Markdown file is in a different directory, provide the full path or add the directory to the INPUT configuration and set RECURSIVE = YES.
Important
USE_MDFILE_AS_MAINPAGEshould only contain the file name, not the full path. The full path should be specified in the INPUT configuration if needed.
In your Markdown file, you can use a level 1 heading to create the main page title.
Or, you can use the \mainpage command, like so:
manual/index.dox
/** \mainpage My Library Manual
- Building
- Basics
- Examples
*/For other pages, prefix them with the \page command.
And then include it in your Doxyfile:
INPUT = manual/index.doxAdd a module or topic description page
Note
To create custom pages, use one of the supported file extension:
.dox,.txt, or.md. Doxygen will treat a.doxor.txtfile as a C/C++ source file, and a.mdfile as a Markdown file.
If you prefer using Markdown files, create a .md file for your module description and include it in your Doxyfile:
@ingroup group_name
# Module Title
Detailed description of the module goes here.