documentationdoxygendoxywizard

Can't import/include external doxygen configuration file properly


I have a simple doxygen project consisting of Doxyfile and a configuration file, project.txt. In the project.txt file, I have some manually written documentation that uses cross-references to auto generated documentation from my code, and it all works fine.

I am trying to break down my project into subsections, like:

project.txt
disclaimer.txt
readme.txt

So, I've put Doxygen markup code into disclaimer.txt and readme.txt, and I updated the EXAMPLE_PATH in my Doxyfile to be:

EXAMPLE_PATH=./

Finally, in project.txt, I just added the lines:

\include disclaimer.txt
\include readme.txt

I expected disclaimer.txt and readme.txt to be imported into project.txt so they are treated as Doyxgen markup, but instead, they are interpreted as text, and are rendered as-is in a code block, as if wrapped by \code and \endcode tags, making the include operation useless.

Is there some way to include additional Doxygen configuration files and actually have them parsed?

Thank you.


Solution

  • I don't think you can include Doxygen config files at arbitrary points in your code like that. I know you could add it to you file list though, etc:

    INPUT   = ../PATH_TO_SOURCE_CODE_HEADER_1.h  \
              ./project.txt                      \
              ./disclaimer.txt                   \
              ./readme.txt
    

    Also, make sure each of your .txt files is wrapped with /** and */ if you're using C, for example.