Doxygen manual
|
Doxytag is a small command line based utility. It can generate tag files. These tag files can be used with doxygen to generate references to external documentation (i.e. documentation not contained in the input files that are used by doxygen).
A tag file contains information about files, classes and members documented in external documentation. Doxytag extracts this information directly from the HTML files. This has the advantage that you do not need to have the sources from which the documentation was extracted.
If you do have the sources it is better to let doxygen
generate the tag file by putting the name of the tag file after GENERATE_TAGFILE in the configuration file.
The input of doxytag consists of a set of HTML files.
installdox
script to change these dummy links into real links. See Installdox usage for more information. The use of dummy links may seem redundant, but it is really useful, if you want to move the external documentation to another location. Then the documentation does not need to be regenerated by doxygen
, only installdox
has to be run.Doxytag expects a list of all HTML files that form the documentation or a directory that contains all HTML files. If neither is present doxytag will read all files with a .html
extension from the current directory. If doxytag is used with the -t
flag it generates a tag file.
example.cpp
from the examples
directory that is listed below is included in some package for which you do not have the sources. Fortunately, the distributor of the packages included the HTML documentation that was generated by doxygen in the package. /** A Test class. * More details about this class. */ class Test { public: /** An example member function. * More details about this function. */ void example(); }; void Test::example() {} /** \example example_test.cpp * This is an example of how to use the Test class. * More details about this example. */
doxytag -t example.tag example/html
/*! A class that is inherited from the external class Test. */ class Tag : public Test { public: /*! an overloaded member. */ void example(); };
Note that this is actually a feature because if you (or someone else) moves the external documentation to a different directory or URL you can simply run the script again and all links in the HTML files will be updated.
Click here for the corresponding HTML documentation that is generated by Doxygen using only the tag file and second piece of code.doxytag -t qt.tag $QTDIR/doc/html