1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="generator" content="AsciiDoc 8.5.2">
6
<title>asciidoc</title>
11
ASCIIDOC(1) Manual Page
16
converts an AsciiDoc text file to HTML or DocBook
18
<h2><a name="_synopsis"></a>SYNOPSIS</h2>
19
<p><strong>asciidoc</strong> [<b>OPTIONS</b>] <b>FILE</b></p>
20
<h2><a name="_description"></a>DESCRIPTION</h2>
21
<p>The asciidoc(1) command translates the AsciiDoc text file <b>FILE</b> to a
22
DocBook, HTML or LinuxDoc file. If <b>FILE</b> is <b>-</b> then the standard
24
<h2><a name="_options"></a>OPTIONS</h2>
27
<strong>-a, --attribute</strong>=<b>ATTRIBUTE</b>
31
Define or delete document attribute. <b>ATTRIBUTE</b> is formatted like
32
<b>NAME=VALUE</b>. Command-line attributes take precedence over
33
document and configuration file attributes. Alternate acceptable
34
forms are <b>NAME</b> (the <b>VALUE</b> defaults to an empty string);
35
<b>NAME!</b> (delete the <b>NAME</b> attribute); <b>NAME@</b> (do not override
36
document or configuration file attributes). Values containing
37
spaces should be enclosed in double-quote characters. This option
38
may be specified more than once. A special attribute named
39
<b>trace</b> controls the output of diagnostic information.
43
<strong>-b, --backend</strong>=<b>BACKEND</b>
47
Backend output file format: <b>docbook</b>, <b>xhtml11</b> or <b>html4</b>.
48
Defaults to <b>xhtml11</b>.
52
<strong>-f, --conf-file</strong>=<b>CONF_FILE</b>
56
Use configuration file <b>CONF_FILE</b>.Configuration files processed
57
in command-line order (after implicit configuration files). This
58
option may be specified more than once.
62
<strong>--doctest</strong>
66
Run Python doctests in <b>asciidoc</b> module.
70
<strong>-d, --doctype</strong>=<b>DOCTYPE</b>
74
Document type: <b>article</b>, <b>manpage</b> or <b>book</b>. The <b>book</b> document
75
type is only supported by the <b>docbook</b> backend. Default document
76
type is <b>article</b>.
80
<strong>-c, --dump-conf</strong>
84
Dump configuration to stdout.
88
<strong>-h, --help</strong>[=<b>TOPIC</b>]
92
Print help TOPIC. <strong>--help</strong>=<b>topics</b> will print a list of help
93
topics, <strong>--help</strong>=<b>syntax</b> summarizes AsciiDoc syntax,
94
<strong>--help</strong>=<b>manpage</b> prints the AsciiDoc manpage.
98
<strong>-e, --no-conf</strong>
102
Exclude implicitly loaded configuration files except for those
103
named like the input file (<b>infile.conf</b> and
104
<b>infile-backend.conf</b>).
108
<strong>-s, --no-header-footer</strong>
112
Suppress document header and footer output.
116
<strong>-o, --out-file</strong>=<b>OUT_FILE</b>
120
Write output to file <b>OUT_FILE</b>. Defaults to the base name of
121
input file with <b>backend</b> extension. If the input is stdin then
122
the outfile defaults to stdout. If <b>OUT_FILE</b> is <b>-</b> then the
123
standard output is used.
127
<strong>-n, --section-numbers</strong>
131
Auto-number HTML article section titles. Synonym for <strong>-a
136
<strong>--safe</strong>
140
Enable safe mode. Safe mode is disabled by default. AsciiDoc
141
<b>safe mode</b> skips potentially dangerous scripted sections in
142
AsciiDoc source files.
146
<strong>-v, --verbose</strong>
150
Verbosely print processing information and configuration file
155
<strong>--version</strong>
159
Print program version number.
163
<h2><a name="_exit_status"></a>EXIT STATUS</h2>
178
Failure (syntax or usage error; configuration error; document
179
processing failure; unexpected error).
183
<h2><a name="_bugs"></a>BUGS</h2>
184
<p>See the AsciiDoc distribution BUGS file.</p>
185
<h2><a name="_author"></a>AUTHOR</h2>
186
<p>Written by Stuart Rackham, <<a href="mailto:srackham@gmail.com">srackham@gmail.com</a>></p>
187
<h2><a name="_resources"></a>RESOURCES</h2>
188
<p>SourceForge: <a href="http://sourceforge.net/projects/asciidoc/">http://sourceforge.net/projects/asciidoc/</a></p>
189
<p>Main web site: <a href="http://www.methods.co.nz/asciidoc/">http://www.methods.co.nz/asciidoc/</a></p>
190
<h2><a name="_copying"></a>COPYING</h2>
191
<p>Copyright (C) 2002-2009 Stuart Rackham. Free use of this software is
192
granted under the terms of the GNU General Public License (GPL).</p>
197
Last updated 2009-11-18 13:43:26 NZDT