|This page needs a review and probably holds information that needs to be fixed.
Parts to be reviewed:
The KDE project uses doxygen to generate API documentation from source code.
Generate apidox in the KDE format using
% cd html_dir % /path/to/trunk/KDE/kdelibs/doc/api/doxygen.sh --recurse \ --doxdatadir=/path/to/trunk/KDE/kdelibs/doc/common \ /path/to/trunk/KDE/kdelibs
To generate documentation in doxygen style instead of KDE style, use kdedoxygen.sh:
% cd source_dir % /path/to/trunk/KDE/kdesdk/scripts/kdedoxygen.sh
You'll find the top-level html at ./apidocs/html/index.html Load that page into your favorite web browser, review your documentation, then edit your code accordingly.
Warnings from doxygen will be found in ./doxygen.log. Please try to fix all warnings reported by doxygen.
Man page lovers can generate man pages using kdedoxyman.sh Like so:
% cd source_dir % /path/trunk/KDE/kdesdk/scripts/kdedoxyman.sh -d /path/kdeinstall/share
You can also generate man pages from Qt source code using kdedoxyman.sh:
% cd qt-copy/src % /path/trunk/KDE/kdesdk/scripts/kdedoxyman.sh -d /path/kdeinstall/share
and then add /path/kdeinstall/share/man to your $MANPATH environment variable.
If you like to view API documentation with Qt's assistant, then you can generate the necessary 'qch' files using kdedoxyqt.sh.
Note that kdedoxyqt.sh requires doxygen as well as qhelpgenerator from the Qt toolkit.
% cd source_dir % /path/trunk/KDE/kdesdk/scripts/kdedoxyqt.sh [wait]
You should now have a file called apidocs/qch/KDE-4.2.qch in this current working directory. Copy KDE-4.2.qch some place for safe keeping.
Now, start assistant. Go into Edit->Preferences->Documentation and add the safe copy of KDE-4.2.qch into the db.