File: makedoc._tx

package info (click to toggle)
allegro4.4 2%3A4.4.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 20,744 kB
  • sloc: ansic: 164,458; asm: 17,620; cpp: 3,848; javascript: 3,053; objc: 1,687; sh: 1,107; python: 676; pascal: 179; makefile: 57; perl: 29; lisp: 1
file content (139 lines) | stat: -rw-r--r-- 7,059 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
@external-css=allegro.css
@document_title=makedoc

<center><h1><b>
The makedoc tool
</b></h1></center>
<hr>

@heading
Using makedoc

Not only the library is built from source code but the actual documentation
too. Allegro is bundled with makedoc, a convulsed C program which started
small and has grown to support many different output formats. The
documentation source and documentation generator can be found both under the
`docs/src' directory. Running `make' in Allegro's top directory will generate
the documentation along with the library, but there are more specific make
targets which you can use to selectively build only the documentation or
specific versions of the documentation which by default won't be generated.
You can find more about these in the "Makefile targets" chapter.

@hnode Output formats
Makedoc output will be placed in the `docs/format' directory or directly in
the `docs' directory. Usually if an output format requires an external tool
which doesn't come bundled with Allegro you will have to generate it manually
with the correct makefile target.
<ul><li>
   `.txt'<br>
   Plain text version of the documentation. It is basically a dump of the
   `._tx' source file stripping the custom tags. This output is generated by
   default and available on all supported platforms.
<li>
   `.rtf'<br>
   Rich text format version of the documentation. This is a slightly improved
   version of the text output. Makedoc will generate a few nice things like
   a table of contents and will use different fonts in the output, which
   are nicer to read or print than the text version. This output is generated
   by default and available on all supported platforms.
<li>
   `.html'<br>
   Html version of the documentation. Depending on some tags in the `._tx'
   source file it can be built as multiple files or a single big page (see
   below). The documentation is generated in two steps: first the normal
   output is generated. This output doesn't contain hyperlinks between
   chapters since the makedoc tool doesn't know in advance in which file will
   be found a specific symbol. The second pass will go through all the links
   and make them point to the correct files. Thanks to cascade style sheets
   you can customize the outlook of the documentation without having to
   modify the makedoc tool. This output is generated by default and available
   on all supported platforms.
<li>
   `.3alleg4'<br>
   Unix man pages for the section "Library calls (functions within program
   libraries)". As usual these man pages will contain a synopsis,
   description and see also sections. Certain parts of the documentation
   like chapter introductions won't have man pages. This output is generated
   by default on Unix platforms. Note that you have to install the man pages
   manually with a specific makefile target.
<li>
   `.texi'<br>
   Intermediate format for GNU tools. This format is not readable alone and
   requires processing to be transformed into something else. This output can
   be generated on all platforms because it doesn't require external
   programs, but all by itself is not very useful.
<li>
   `.info'<br>
   GNU online info format. Generated from the `.texi' output this format can
   be used with the GNU `info' tool. The produced output looks similar to the
   plain text version but features hyperlinked navigation. This output is
   generated by default on platforms supporting the GNU tools like Unix or
   DJGPP (DOS). You need the `makeinfo' tool to generate the output and the
   `info' tool to view it. You have to install this manually on your system
   with a specific makefile target.
<li>
   `.chm'<br>
   Compiled HTML. Similar to the HTML output but instead of having lots of
   separate files you end up with a single file. You need Microsoft's HTML
   compiler to build this version of the documentation. Windows users can
   view `.chm' files by default. Non Windows users can go to
   <link>http://freshmeat.net/</a> and search for "chm viewer". Read more in the
   "Makefile targets" chapter.
<li>
   `.dvi'<br>
   Device independent documentation file. While this format is usable, it is
   also used as intermediate step to other formats. In fact, this one is
   build from the texi output. By default not build, as it relies on the
   external tool texi2dvi.
<li>
   `.ps'<br>
   Postscript version of the documentation, ideal for printing. This is not
   generated by default because it needs to generate the DVI output and
   then use the external tool `dvips'.
<li>
   `.pdf'<br>
   Portable document format. Similar in output quality to the postscript
   output, this has the advantage of having hyperlinks. Generated from the
   texi output with the external tool `texi2pdf'.
<li>
   `.devhelp'<br>
   Devhelp HTML + XML index format. Similar to the HTML output, this also
   carries a separate index which can be used by external programs (usually
   programming editors) to look up context sensitive help. Basically it is
   like the info output but using the more flexible HTML format as base.
   This format doesn't require external tools to be built, but it is not
   built by default. You have to create and install it manually.
<li>
   `.api'<br>
   SciTE api format. This is an index of all Allegro functions of the
   library for the SciTE editor (<link>http://www.scintilla.org/SciTE.html</a>).
   This output is generated by default and available on all supported
   platforms.</ul>

@hnode Customizing the output
Some of the output formats can be customized even further by modifying some
of the generated files or directly the original source file. The
documentation source file format is described with more detail in
`docs/src/makedoc/format.txt'. Usually the interesting bits to users are:
<ul><li>
   The HTML output generates by default individual HTML files for each
   chapter. By uncommenting the `multiplefiles' command you can create a
   single file with the whole manual. Note that external documentation files
   like the FAQ or hacking guide will still be linked, but not included.
<li>
   The HTML output also uses cascade style sheets to specify the outlook of
   the generated pages. You can disable CSS with the `ignore_css' command or
   specify a different CSS file with external-css=. The default CSS file
   generated by makedoc also has something to tweak.
<li>
   When using the multiple file output, makedoc places a "Back to contents"
   link at the bottom of each chapter. If you follow a hyperlink you can end
   up pointing at one of the last descriptions of the page but your browser
   might not scroll to the correct height because the page ends up before.
   To avoid this effect, you can uncomment one of the last lines in the CSS
   related to a bottom margin. Making the bottom margin higher puts more
   space between the "Back to contents" link and the physical end of the
   page.
</ul>
Note that all the above which applies to HTML output also applies to
documentation formats which are HTML based, like Devhelp or CHM.