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