$ sudo apt install doxygen $ sudo apt install graphviz
Go to the directory or sub-directory of your project which you want to document and create file with name Doxyfile with following content (or execute doxygen -g to create template file having default settings)
This file configures output to be placed in the Documentation directory under your source directory.
Open shell and go to the folder where Doxyfile is located.
Then execute doxygen.
Doxygen will scan all the files in sub-directories of the selected directory. Generated documentation will be placed into Documentation directory inside selected one.
Setting up web server
$ sudo apt-get update $ sudo apt-get install apache2
Update Doxyfile to direct output to the web-server directory /var/www/
$ sudo systemctl status apache2 $ sudo systemctl restart apache2
Setting up cron task
Put into /etc/cron.daily a script pulling repository and starting doxygen with Doxyfile.