source: trunk/third/gtk-doc/doc/sections-file.txt @ 20745

Revision 20745, 2.2 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20744, which included commits to RCS files with non-trunk default branches.
Line 
1
2This describes the MODULE-sections.txt file which is used to organise the
3documentation output by gtk-doc.
4
5The file is divided into sections. Each section will be output to a separate
6file in the templates, which also corresponds to a SGML file, and a file in
7the final HTML files. Each section contains a list of function/macro etc.
8names, which can be rearranged into the desired order.
9
10The <FILE> ... </FILE> tag is used to specify the file name, without any
11suffix. For example, using '<FILE>gnome-config</FILE>' will result in the
12section declarations being output in the template file tmpl/gnome-config.sgml,
13which will be converted into the DocBook SGML file sgml/gnome-config.sgml.
14(The name of the html file is based on the module name and the section title,
15or for widgets it is based on the widget name converted to lower case).
16
17The <TITLE> ... </TITLE> tag is used to specify the title of the section.
18It is only useful before the templates are initially created, since the title
19set in the template file overrides this.
20
21You can group items in the section by using the <SUBSECTION> tag. Currently
22it outputs a blank line between subsections in the synopsis section.
23You can also use <SUBSECTION Standard> for standard GtkObject declarations
24(e.g. the functions like gtk_object_get_type and macros like GTK_OBJECT(),
25GTK_IS_OBJECT() etc.) Currently these are left out of the documentation.
26You can also use <SUBSECTION Private> for private declarations which will not
27be output (Its a handy way to avoid warning messages about unused
28declarations.)
29
30You can also use <INCLUDE> ... <INCLUDE> to specify the #include files which
31are shown in the synopsis sections. It contains a comma-separate list of
32#include files, without the angle brackets. If you set it outside of any
33sections, it acts for all sections until the end of the file. If you set it
34within a section, it only applies to that section.
35
36Example MODULE-sections.txt file:
37
38<INCLUDE>gnome.h</INCLUDE>
39
40<SECTION>
41<FILE>gnome-dateedit</FILE>
42<TITLE>GnomeDateEdit</TITLE>
43gnome_date_edit_new
44gnome_date_edit_set_time
45gnome_date_edit_set_popup_range
46gnome_date_edit_get_date
47<SUBSECTION Standard>
48GNOME_DATE_EDIT
49GNOME_IS_DATE_EDIT
50gnome_date_edit_get_type
51GNOME_DATE_EDIT_CLASS
52</SECTION>
Note: See TracBrowser for help on using the repository browser.