gnome-doc(1)

gnome-doc1

Documentation tool for gnome

Usage

gnome-doc [{-docbook | -html | -text | -man}] [-function funcname [-function funcname ...]] [c files]

Overview

gnome-doc This will read a 'c' file and scan for embedded comments in the style of gnome comments (+minor extensions - see below).

All output goes to stdout, with errors to stderr.

Options

-docbook -html -text -man

Set output format using one of -docbook -html -text or -man. Default is man.

-function

If set, then only generate documentation for the given function(s). All other functions are ignored.

c files

list of 'c' files to process

Format of comments

In the following table,
		(...)? signifies optional structure.
		(...)* signifies 0 or more structure elements.
        /**
	 * function_name(:)? (- short description)?
	 * @parameterx: (description of parameter x)?)*
	(* a blank line)?
	 * (Description:)? (Description of function)?
	 * (section header: (section description)? )*
	(*)?*/
      So .. the trivial example would be:
      /**
       * my_function
       **/
      If the Description: header tag is omitted, then there must be a blank
      line after the last parameter specification.
       e.g.
	/**
	 * my_function - does my stuff
	 * @my_arg: its mine damnit
	 *
	 * Does my stuff explained. 
	 */
	or, could also use:
	/**
	 * my_function - does my stuff
	 * @my_arg: its mine damnit
	 * Description: Does my stuff explained. 
	 */
	etc.
	All descriptions can be multiline, apart from the short function
	description.
	All descriptive text is further processed, scanning for the
	following special patterns, which are highlighted appropriately.
	funcname()  - function
	$ENVVAR     - environmental variable
	struct_name - name of a structure
	@parameter  - name of a parameter
	%CONST      - name of a constant.

Releases

5 releases since Debian 2.2 (Potato); the text changed 1 time.

  1. 2.2
  2. 3.0–5.0

-docbook since Debian 3.0 (Woody); -function since Debian 3.0 (Woody); -html since Debian 3.0 (Woody); -man since Debian 3.0 (Woody); -text since Debian 3.0 (Woody).

Author

This manual page was written by Christian Marillat <[email protected]> for the Debian GNU/Linux system (but may be used by others).

From gnome-bin 1.4.2-37+b2 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.