Automatic C++ documentation generation on GitLab project using doxygen

Viewed 2785

I am working in a GitLab C++ project and I am trying to have a automatic documentation generation on the code using Doxygen. I don't really know how to approach the problem.

Can I somehow include it in CMake to have a updated documentation in the project everytime someone builds it?

Or would it be better to have the server generate a documentation when someone pushes his Code?

Thanks for your help!

2 Answers

Yes, I think it is better to have a separate server build the documentation whenever someone pushes. If you have a Travis-CI account, you could configure an automatic deployment of your Doxygen documentation to the GitLab Wiki.

See here a link to a Gist example for GitHub, but should be expandable to GitLab: https://gist.github.com/vidavidorra/548ffbcdae99d752da02

Related