2024-09-06 使用DoxyGen + Doxygen Awesome自动生成好看C++文档
下载DoxyGen
下载地址:https://www.doxygen.nl/download.html
下载Graphviz
一种根据文件生成类图的工具
下载地址: https://graphviz.org/download/
clone Doxygen Awesome
Doxygen Awesome是一个github开源仓库
git https://github.com/jothepro/doxygen-awesome-css.git
cd doxygen-awesome-css
git checkout v2.3.3
DoxyGen配置
参考Doxygen Awesome的配置
GENERATE_TREEVIEW = YES # required!
DISABLE_INDEX = NO
FULL_SIDEBAR = NO
HTML_EXTRA_STYLESHEET = doxygen-awesome-css/doxygen-awesome.css \
doxygen-awesome-css/doxygen-awesome-sidebar-only.css
HTML_COLORSTYLE = LIGHT # required with Doxygen >= 1.9.5
生成开发文档
效果可参考https://github.com/jothepro/doxygen-awesome-css