Hi guys..
Have you heard of doxygen....it is a great tool for generating html and LaTex documents...from source code..
So basically if you have your source commented..you simply use doxygen to create the document for your project.
Moreover as you may have seen in manual pages of doxygen(if you are the on who have used it).it can be "abused" to create documents for other things..also..