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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
'\" t
.\" Title: asciidoctor
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\" Date: 05/30/2013
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "ASCIIDOCTOR" "1" "05/30/2013" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
asciidoctor \- converts an AsciiDoc source file to HTML, DocBook and other formats
.SH "SYNOPSIS"
.sp
\fBasciidoctor\fR [\fIOPTION\fR]\&... \fIFILE\fR
.SH "DESCRIPTION"
.sp
The asciidoctor(1) command converts the AsciiDoc source file \fIFILE\fR to HTML 5, DocBook 4\&.5 and other output formats\&.
.sp
If \fIFILE\fR is \fI\-\fR then the AsciiDoc source is read from standard input\&.
.SH "OPTIONS"
.SS "Security Settings"
.PP
\fB\-B, \-\-base\-dir\fR=\fIDIR\fR
.RS 4
Base directory containing the document and resources\&. Defaults to the directory containing the source file, or the working directory if the source is read from a stream\&. Can be used as a way to chroot the execution of the program\&.
.RE
.PP
\fB\-S, \-\-safe\-mode\fR=\fISAFE_MODE\fR
.RS 4
Set safe mode level:
\fIunsafe\fR,
\fIsafe\fR,
\fIserver\fR
or
\fIsecure\fR\&. Disables potentially dangerous macros in source files, such as include::[]\&. If not set, the safe mode level defaults to
\fIunsafe\fR
when Asciidoctor is invoked using this script\&.
.RE
.PP
\fB\-\-safe\fR
.RS 4
Set safe mode level to
\fIsafe\fR\&. Enables include macros, but restricts access to ancestor paths of source file\&. Provided for compatibility with the asciidoc command\&. If not set, the safe mode level defaults to
\fIunsafe\fR
when Asciidoctor is invoked using this script\&.
.RE
.SS "Document Settings"
.PP
\fB\-a, \-\-attribute\fR=\fIATTRIBUTE\fR
.RS 4
Define, override or delete a document attribute\&. Command\-line attributes take precedence over attributes defined in the source file\&.
.sp
\fIATTRIBUTE\fR
is normally formatted as a key\-value pair, in the form
\fINAME=VALUE\fR\&. Alternate acceptable forms are
\fINAME\fR
(where the
\fIVALUE\fR
defaults to an empty string),
\fINAME!\fR
(unassigns the
\fINAME\fR
attribute) and
\fINAME=VALUE@\fR
(where
\fIVALUE\fR
does not override value of
\fINAME\fR
attribute if it\(cqs already defined in the source document)\&. Values containing spaces should be enclosed in quotes\&.
.sp
This option may be specified more than once\&.
.RE
.PP
\fB\-b, \-\-backend\fR=\fIBACKEND\fR
.RS 4
Backend output file format:
\fIdocbook45\fR
or
\fIhtml5\fR
supported out of the box\&. You can also use the backend alias names
\fIhtml\fR
(aliased to
\fIhtml5\fR) or
\fIdocbook\fR
(aliased to
\fIdocbook45\fR)\&. Defaults to
\fIhtml5\fR\&. Other options can be passed, but if Asciidoctor cannot find the backend, it will fail during rendering\&.
.RE
.PP
\fB\-d, \-\-doctype\fR=\fIDOCTYPE\fR
.RS 4
Document type:
\fIarticle\fR,
\fIbook\fR
or
\fIinline\fR\&. Sets the root element when using the
\fIdocbook\fR
backend and the style class on the HTML body element when using the
\fIhtml\fR
backend\&. The
\fIbook\fR
document type allows multiple level\-0 section titles in a single document\&. The
\fIinline\fR
document type allows the content of a single paragraph to be formatted and returned without wrapping it in a containing element\&. Defaults to
\fIarticle\fR\&.
.RE
.SS "Rendering Control"
.PP
\fB\-C, \-\-compact\fR
.RS 4
Compact the output by removing blank lines\&. Not enabled by default\&.
.RE
.PP
\fB\-D, \-\-destination\-dir\fR=\fIDIR\fR
.RS 4
Destination output directory\&. Defaults to the directory containing the source file, or the working directory if the source is read from a stream\&. If specified, the directory is resolved relative to the working directory\&.
.RE
.PP
\fB\-e, \-\-eruby\fR
.RS 4
Specifies the eRuby implementation to use for rendering the built\-in templates\&. Supported values are
\fIerb\fR
and
\fIerubis\fR\&. Defaults to
\fIerb\fR\&.
.RE
.PP
\fB\-n, \-\-section\-numbers\fR
.RS 4
Auto\-number section titles\&. Synonym for
\fB\-\-attribute numbered\fR\&.
.RE
.PP
\fB\-o, \-\-out\-file\fR=\fIOUT_FILE\fR
.RS 4
Write output to file
\fIOUT_FILE\fR\&. Defaults to the base name of the input file suffixed with
\fIbackend\fR
extension\&. If the input is read from standard input, then the output file defaults to stdout\&. If
\fIOUT_FILE\fR
is
\fI\-\fR
then the standard output is also used\&. If specified, the file is resolved relative to the working directory\&.
.RE
.PP
\fB\-s, \-\-no\-header\-footer\fR
.RS 4
Suppress the document header and footer in the output\&.
.RE
.PP
\fB\-T, \-\-template\-dir\fR=\fIDIR\fR
.RS 4
Directory containing custom render templates that override one or more templates from the built\-in set\&. If there is a folder in the directory that matches the backend, the templates from that folder will be used\&.
.RE
.SS "Processing Information"
.PP
\fB\-\-trace\fR
.RS 4
Include backtrace information on errors\&. Not enabled by default\&.
.RE
.PP
\fB\-v, \-\-verbose\fR
.RS 4
Verbosely print processing information and configuration file checks to stderr\&.
.RE
.SS "Program Information"
.PP
\fB\-h, \-\-help\fR
.RS 4
Show the help message\&.
.RE
.PP
\fB\-V, \-\-version\fR
.RS 4
Print program version number\&.
.RE
.SH "EXIT STATUS"
.PP
\fB0\fR
.RS 4
Success
.RE
.PP
\fB1\fR
.RS 4
Failure (syntax or usage error; configuration error; document processing failure; unexpected error)\&.
.RE
.SH "BUGS"
.sp
See the \fBAsciidoctor\fR issue tracker: <\fBhttps://github\&.com/asciidoctor/asciidoctor/issues?state=open\fR>
.SH "AUTHORS"
.sp
\fBAsciidoctor\fR was written by Dan Allen, Ryan Waldron, Jason Porter, Nick Hengeveld and other contributors\&.
.sp
\fBAsciiDoc\fR was written by Stuart Rackham and has received contributions from many other individuals\&.
.SH "RESOURCES"
.sp
Git source repository on GitHub: <\fBhttps://github\&.com/asciidoctor/asciidoctor\fR>
.sp
Project web site: <\fBhttp://asciidoctor\&.org\fR>
.sp
GitHub organization: <\fBhttp://github\&.com/asciidoctor\fR>
.sp
Mailinglist / forum: <\fBhttp://discuss\&.asciidoctor\&.org\fR>
.SH "COPYING"
.sp
Copyright (C) 2012\-2013 Dan Allen and Ryan Waldron\&. Free use of this software is granted under the terms of the MIT License\&.
|