Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write readme files that are automatically included into the Doxygen output?

Conceptually along the lines of restructuredtext, I want to distribute readme files throughout my different source directories and then have Doxygen read and include those readme text files as part of the generated Doxygen output.

How is this done? Or do I need to spoof Doxygen by creating a pseudo C file like:

README.h:

/** 
My big long readme file describing how this library 
was created and how it should be used
*/
namespace foo_readme { }
like image 902
Ross Rogers Avatar asked Sep 14 '11 18:09

Ross Rogers


1 Answers

If you're just using HTML output you can just use the HTML_EXTRA_FILES field of the doxygen configuration file.

If you have a plain text README file just add it to your program directory manually.

You can also spoof a .h file with the tag \mainpage to populate the index (main) page of your doxygen output.

like image 73
awiebe Avatar answered Oct 17 '22 22:10

awiebe