install
sudo apt install doxygen sudo apt install graphviz
use
cd src# src is the code dir doxygen -g Doxygen.config #gengerate the default config file vim Doxygen.config #enabel generate set RECURSIVE =YES doxygen Doxygen.config #generate the document for your code