Difference between revisions of "Doxygen"

From PaparazziUAV
Jump to navigation Jump to search
Line 3: Line 3:
Current documentation generated from the master branch can be found under [http://paparazzi.github.com/docs paparazzi.github.com/docs].
Current documentation generated from the master branch can be found under [http://paparazzi.github.com/docs paparazzi.github.com/docs].


== Doxygen Comments ==
== Generating Doxygen Code Documentation yourself ==
 
A way to look at the includes and dependencies is to use the graphs generated with doxygen. After installing Paparazzi, install Doxygen:
 
sudo apt-get install doxygen graphviz
 
run the generation tool from the paparazzi/ directory:
 
doxygen
 
Now Doxygen will have generated html documentation(open this with any web browser) in your paparazzi/html/docs folder.
 
To look at a list of all of the files used by the airborne software:
paparazzi/doc/html/docs/files.html
The main_ap.c will also interest you.
paparazzi/doc/html/docs/main__ap_8c.html
 
This is a sample of a Doxygen Graph:
[[Image:Autopilot_8h_incl.png|Include dependency graph for autopilot.h]]
 
== Doxygen Style ==
 
The [http://paparazzi.github.com/docs/styledoxygen.html Paparazzi Doxygen style guide] is of course written in doxygen as well ;-)


Please [http://www.stack.nl/~dimitri/doxygen/docblocks.html document the code using doxygen comments] instead of normal comments where appropriate.
Please [http://www.stack.nl/~dimitri/doxygen/docblocks.html document the code using doxygen comments] instead of normal comments where appropriate.
Line 37: Line 59:
  }
  }


== Generating Doxygen Code Documentation yourself ==
A way to look at the includes and dependencies is to use the graphs generated with doxygen. After installing Paparazzi, install Doxygen:
sudo apt-get install doxygen graphviz
run the generation tool from the paparazzi/ directory:
doxygen
Now Doxygen will have generated html documentation(open this with any web browser) in your paparazzi/html/docs folder.
To look at a list of all of the files used by the airborne software:
paparazzi/doc/html/docs/files.html
The main_ap.c will also interest you.
paparazzi/doc/html/docs/main__ap_8c.html
This is a sample of a Doxygen Graph:
[[Image:Autopilot_8h_incl.png|Include dependency graph for autopilot.h]]


[[Category:Software]] [[Category:Developer_Documentation]]
[[Category:Software]] [[Category:Developer_Documentation]]

Revision as of 07:26, 20 January 2012

Doxygen is a documentation system that also extracts information from the source files directly.

Current documentation generated from the master branch can be found under paparazzi.github.com/docs.

Generating Doxygen Code Documentation yourself

A way to look at the includes and dependencies is to use the graphs generated with doxygen. After installing Paparazzi, install Doxygen:

sudo apt-get install doxygen graphviz

run the generation tool from the paparazzi/ directory:

doxygen

Now Doxygen will have generated html documentation(open this with any web browser) in your paparazzi/html/docs folder.

To look at a list of all of the files used by the airborne software:

paparazzi/doc/html/docs/files.html

The main_ap.c will also interest you.

paparazzi/doc/html/docs/main__ap_8c.html

This is a sample of a Doxygen Graph: Include dependency graph for autopilot.h

Doxygen Style

The Paparazzi Doxygen style guide is of course written in doxygen as well ;-)

Please document the code using doxygen comments instead of normal comments where appropriate.

See the Doxygen Manual for more details.

File

/**
 * @file subsystems/nav.h
 * Navigation library.
 *
 * This collection of macros and functions is used by the C code generated
 * from the XML flight plan.
 */

Function

/**
 * A brief one line description.
 *
 * Detailed description
 * May span multiple lines or paragraphs as needed
 *
 * @param  Description of method's or function's input parameter
 * @param  ...
 * @return Description of the return value
 */
int function(int parameter)
{
    printf("Parameter: %d", parameter);

    return 0;
}