asciidoctor 1.5.8 → 2.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +11 -0
- data/CHANGELOG.adoc +628 -45
- data/LICENSE +2 -1
- data/README-de.adoc +28 -38
- data/README-fr.adoc +30 -43
- data/README-jp.adoc +255 -201
- data/README-zh_CN.adoc +40 -44
- data/README.adoc +170 -143
- data/asciidoctor.gemspec +22 -34
- data/bin/asciidoctor +5 -4
- data/data/locale/attributes-ar.adoc +4 -3
- data/data/locale/attributes-be.adoc +23 -0
- data/data/locale/attributes-bg.adoc +4 -3
- data/data/locale/attributes-ca.adoc +6 -5
- data/data/locale/attributes-cs.adoc +4 -3
- data/data/locale/attributes-da.adoc +6 -5
- data/data/locale/attributes-de.adoc +6 -5
- data/data/locale/attributes-en.adoc +4 -4
- data/data/locale/attributes-es.adoc +6 -5
- data/data/locale/attributes-fa.adoc +4 -3
- data/data/locale/attributes-fi.adoc +4 -3
- data/data/locale/attributes-fr.adoc +8 -7
- data/data/locale/attributes-hu.adoc +4 -3
- data/data/locale/attributes-id.adoc +4 -3
- data/data/locale/attributes-it.adoc +6 -5
- data/data/locale/attributes-ja.adoc +4 -3
- data/data/locale/{attributes-kr.adoc → attributes-ko.adoc} +4 -3
- data/data/locale/attributes-nb.adoc +4 -3
- data/data/locale/attributes-nl.adoc +6 -5
- data/data/locale/attributes-nn.adoc +4 -3
- data/data/locale/attributes-pl.adoc +8 -7
- data/data/locale/attributes-pt.adoc +6 -5
- data/data/locale/attributes-pt_BR.adoc +6 -5
- data/data/locale/attributes-ro.adoc +4 -3
- data/data/locale/attributes-ru.adoc +6 -5
- data/data/locale/attributes-sr.adoc +4 -4
- data/data/locale/attributes-sr_Latn.adoc +4 -4
- data/data/locale/attributes-sv.adoc +4 -4
- data/data/locale/attributes-th.adoc +23 -0
- data/data/locale/attributes-tr.adoc +4 -3
- data/data/locale/attributes-uk.adoc +6 -5
- data/data/locale/attributes-vi.adoc +23 -0
- data/data/locale/attributes-zh_CN.adoc +4 -3
- data/data/locale/attributes-zh_TW.adoc +4 -3
- data/data/reference/syntax.adoc +296 -0
- data/data/stylesheets/asciidoctor-default.css +120 -114
- data/data/stylesheets/coderay-asciidoctor.css +15 -17
- data/lib/asciidoctor/abstract_block.rb +146 -140
- data/lib/asciidoctor/abstract_node.rb +152 -170
- data/lib/asciidoctor/attribute_list.rb +77 -89
- data/lib/asciidoctor/block.rb +29 -28
- data/lib/asciidoctor/callouts.rb +4 -2
- data/lib/asciidoctor/cli/invoker.rb +20 -24
- data/lib/asciidoctor/cli/options.rb +107 -96
- data/lib/asciidoctor/cli.rb +3 -2
- data/lib/asciidoctor/convert.rb +199 -0
- data/lib/asciidoctor/converter/composite.rb +40 -48
- data/lib/asciidoctor/converter/docbook5.rb +627 -644
- data/lib/asciidoctor/converter/html5.rb +1053 -951
- data/lib/asciidoctor/converter/manpage.rb +581 -532
- data/lib/asciidoctor/converter/template.rb +232 -271
- data/lib/asciidoctor/converter.rb +370 -185
- data/lib/asciidoctor/core_ext/float/truncate.rb +20 -0
- data/lib/asciidoctor/core_ext/hash/merge.rb +8 -0
- data/lib/asciidoctor/core_ext/match_data/names.rb +7 -0
- data/lib/asciidoctor/core_ext/nil_or_empty.rb +1 -0
- data/lib/asciidoctor/core_ext/regexp/is_match.rb +4 -2
- data/lib/asciidoctor/core_ext.rb +8 -17
- data/lib/asciidoctor/document.rb +503 -461
- data/lib/asciidoctor/extensions.rb +127 -174
- data/lib/asciidoctor/helpers.rb +184 -107
- data/lib/asciidoctor/inline.rb +9 -12
- data/lib/asciidoctor/list.rb +11 -29
- data/lib/asciidoctor/load.rb +119 -0
- data/lib/asciidoctor/logging.rb +22 -17
- data/lib/asciidoctor/parser.rb +673 -719
- data/lib/asciidoctor/path_resolver.rb +48 -33
- data/lib/asciidoctor/reader.rb +383 -338
- data/lib/asciidoctor/rouge_ext.rb +39 -0
- data/lib/asciidoctor/rx.rb +723 -0
- data/lib/asciidoctor/section.rb +17 -16
- data/lib/asciidoctor/stylesheets.rb +19 -37
- data/lib/asciidoctor/substitutors.rb +926 -1022
- data/lib/asciidoctor/syntax_highlighter/coderay.rb +88 -0
- data/lib/asciidoctor/syntax_highlighter/highlightjs.rb +34 -0
- data/lib/asciidoctor/syntax_highlighter/html_pipeline.rb +10 -0
- data/lib/asciidoctor/syntax_highlighter/prettify.rb +30 -0
- data/lib/asciidoctor/syntax_highlighter/pygments.rb +157 -0
- data/lib/asciidoctor/syntax_highlighter/rouge.rb +143 -0
- data/lib/asciidoctor/syntax_highlighter.rb +253 -0
- data/lib/asciidoctor/table.rb +152 -114
- data/lib/asciidoctor/timings.rb +7 -5
- data/lib/asciidoctor/version.rb +2 -1
- data/lib/asciidoctor/writer.rb +30 -0
- data/lib/asciidoctor.rb +266 -1340
- data/man/asciidoctor.1 +49 -47
- data/man/asciidoctor.adoc +54 -45
- metadata +50 -245
- data/CONTRIBUTING.adoc +0 -185
- data/Gemfile +0 -60
- data/Rakefile +0 -129
- data/bin/asciidoctor-safe +0 -15
- data/features/open_block.feature +0 -92
- data/features/pass_block.feature +0 -66
- data/features/step_definitions.rb +0 -49
- data/features/text_formatting.feature +0 -57
- data/features/xref.feature +0 -1039
- data/lib/asciidoctor/converter/base.rb +0 -59
- data/lib/asciidoctor/converter/docbook45.rb +0 -93
- data/lib/asciidoctor/converter/factory.rb +0 -226
- data/lib/asciidoctor/core_ext/1.8.7/base64/strict_encode64.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/concurrent/hash.rb +0 -5
- data/lib/asciidoctor/core_ext/1.8.7/hash/key.rb +0 -4
- data/lib/asciidoctor/core_ext/1.8.7/io/binread.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/io/write.rb +0 -5
- data/lib/asciidoctor/core_ext/1.8.7/string/chr.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/string/limit_bytesize.rb +0 -29
- data/lib/asciidoctor/core_ext/1.8.7/symbol/empty.rb +0 -6
- data/lib/asciidoctor/core_ext/1.8.7/symbol/length.rb +0 -6
- data/lib/asciidoctor/core_ext/string/limit_bytesize.rb +0 -10
- data/test/api_test.rb +0 -1240
- data/test/attribute_list_test.rb +0 -242
- data/test/attributes_test.rb +0 -1623
- data/test/blocks_test.rb +0 -3870
- data/test/converter_test.rb +0 -470
- data/test/document_test.rb +0 -1853
- data/test/extensions_test.rb +0 -1560
- data/test/fixtures/asciidoc_index.txt +0 -521
- data/test/fixtures/basic-docinfo-footer.html +0 -6
- data/test/fixtures/basic-docinfo-footer.xml +0 -8
- data/test/fixtures/basic-docinfo.html +0 -1
- data/test/fixtures/basic-docinfo.xml +0 -4
- data/test/fixtures/basic.asciidoc +0 -5
- data/test/fixtures/chapter-a.adoc +0 -3
- data/test/fixtures/child-include.adoc +0 -5
- data/test/fixtures/circle.svg +0 -9
- data/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb +0 -6
- data/test/fixtures/custom-backends/haml/docbook45/block_paragraph.xml.haml +0 -6
- data/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml +0 -3
- data/test/fixtures/custom-backends/haml/html5/block_sidebar.html.haml +0 -5
- data/test/fixtures/custom-backends/haml/html5-tweaks/block_paragraph.html.haml +0 -1
- data/test/fixtures/custom-backends/slim/docbook45/block_paragraph.xml.slim +0 -6
- data/test/fixtures/custom-backends/slim/html5/block_paragraph.html.slim +0 -3
- data/test/fixtures/custom-backends/slim/html5/block_sidebar.html.slim +0 -5
- data/test/fixtures/custom-docinfodir/basic-docinfo.html +0 -1
- data/test/fixtures/custom-docinfodir/docinfo.html +0 -1
- data/test/fixtures/docinfo-footer.html +0 -1
- data/test/fixtures/docinfo-footer.xml +0 -9
- data/test/fixtures/docinfo.html +0 -1
- data/test/fixtures/docinfo.xml +0 -3
- data/test/fixtures/doctime-localtime.adoc +0 -2
- data/test/fixtures/dot.gif +0 -0
- data/test/fixtures/encoding.asciidoc +0 -13
- data/test/fixtures/file-with-missing-include.adoc +0 -1
- data/test/fixtures/grandchild-include.adoc +0 -3
- data/test/fixtures/hello-asciidoctor.pdf +0 -69
- data/test/fixtures/include-file.asciidoc +0 -24
- data/test/fixtures/include-file.jsx +0 -8
- data/test/fixtures/include-file.ml +0 -3
- data/test/fixtures/include-file.xml +0 -5
- data/test/fixtures/lists.adoc +0 -96
- data/test/fixtures/master.adoc +0 -5
- data/test/fixtures/mismatched-end-tag.adoc +0 -7
- data/test/fixtures/other-chapters.adoc +0 -11
- data/test/fixtures/outer-include.adoc +0 -5
- data/test/fixtures/parent-include-restricted.adoc +0 -5
- data/test/fixtures/parent-include.adoc +0 -5
- data/test/fixtures/sample.asciidoc +0 -30
- data/test/fixtures/section-a.adoc +0 -4
- data/test/fixtures/stylesheets/custom.css +0 -3
- data/test/fixtures/subdir/index.adoc +0 -3
- data/test/fixtures/subdir/inner-include.adoc +0 -3
- data/test/fixtures/subdir/middle-include.adoc +0 -5
- data/test/fixtures/subs-docinfo.html +0 -2
- data/test/fixtures/subs.adoc +0 -6
- data/test/fixtures/tagged-class-enclosed.rb +0 -25
- data/test/fixtures/tagged-class.rb +0 -23
- data/test/fixtures/tip.gif +0 -0
- data/test/fixtures/unclosed-tag.adoc +0 -3
- data/test/fixtures/unexpected-end-tag.adoc +0 -4
- data/test/invoker_test.rb +0 -745
- data/test/links_test.rb +0 -855
- data/test/lists_test.rb +0 -5151
- data/test/logger_test.rb +0 -211
- data/test/manpage_test.rb +0 -660
- data/test/options_test.rb +0 -262
- data/test/paragraphs_test.rb +0 -562
- data/test/parser_test.rb +0 -742
- data/test/paths_test.rb +0 -395
- data/test/preamble_test.rb +0 -173
- data/test/reader_test.rb +0 -2161
- data/test/sections_test.rb +0 -3575
- data/test/substitutions_test.rb +0 -2066
- data/test/tables_test.rb +0 -2036
- data/test/test_helper.rb +0 -447
- data/test/text_test.rb +0 -309
data/man/asciidoctor.1
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
'\" t
|
2
2
|
.\" Title: asciidoctor
|
3
|
-
.\" Author: Dan Allen, Sarah White
|
4
|
-
.\" Generator: Asciidoctor
|
5
|
-
.\" Date:
|
3
|
+
.\" Author: Dan Allen, Sarah White
|
4
|
+
.\" Generator: Asciidoctor 2.0.17
|
5
|
+
.\" Date: 2022-01-05
|
6
6
|
.\" Manual: Asciidoctor Manual
|
7
|
-
.\" Source: Asciidoctor
|
7
|
+
.\" Source: Asciidoctor 2.0.17
|
8
8
|
.\" Language: English
|
9
9
|
.\"
|
10
|
-
.TH "ASCIIDOCTOR" "1" "
|
10
|
+
.TH "ASCIIDOCTOR" "1" "2022-01-05" "Asciidoctor 2.0.17" "Asciidoctor Manual"
|
11
11
|
.ie \n(.g .ds Aq \(aq
|
12
12
|
.el .ds Aq '
|
13
13
|
.ss \n[.ss] 0
|
@@ -28,13 +28,13 @@
|
|
28
28
|
. LINKSTYLE blue R < >
|
29
29
|
.\}
|
30
30
|
.SH "NAME"
|
31
|
-
asciidoctor \- converts AsciiDoc source files to HTML, DocBook and other formats
|
31
|
+
asciidoctor \- converts AsciiDoc source files to HTML, DocBook, and other formats
|
32
32
|
.SH "SYNOPSIS"
|
33
33
|
.sp
|
34
34
|
\fBasciidoctor\fP [\fIOPTION\fP]... \fIFILE\fP...
|
35
35
|
.SH "DESCRIPTION"
|
36
36
|
.sp
|
37
|
-
The asciidoctor(1) command converts the AsciiDoc source file(s) \fIFILE\fP to HTML5, DocBook 5,
|
37
|
+
The asciidoctor(1) command converts the AsciiDoc source file(s) \fIFILE\fP to HTML5, DocBook 5, man(ual) page, and other custom output formats.
|
38
38
|
.sp
|
39
39
|
If \fIFILE\fP is \fI\-\fP then the AsciiDoc source is read from standard input.
|
40
40
|
.SH "OPTIONS"
|
@@ -43,13 +43,13 @@ If \fIFILE\fP is \fI\-\fP then the AsciiDoc source is read from standard input.
|
|
43
43
|
\fB\-B, \-\-base\-dir\fP=\fIDIR\fP
|
44
44
|
.RS 4
|
45
45
|
Base directory containing the document and resources.
|
46
|
-
Defaults to the directory containing the source file
|
46
|
+
Defaults to the directory containing the source file or, if the source is read from a stream, the working directory.
|
47
47
|
When combined with the safe mode setting, can be used to chroot the execution of the program.
|
48
48
|
.RE
|
49
49
|
.sp
|
50
50
|
\fB\-S, \-\-safe\-mode\fP=\fISAFE_MODE\fP
|
51
51
|
.RS 4
|
52
|
-
Set safe mode level: \fIunsafe\fP, \fIsafe\fP, \fIserver\fP or \fIsecure\fP.
|
52
|
+
Set safe mode level: \fIunsafe\fP, \fIsafe\fP, \fIserver\fP, or \fIsecure\fP.
|
53
53
|
Disables potentially dangerous macros in source files, such as \f(CRinclude::[]\fP.
|
54
54
|
If not set, the safe mode level defaults to \fIunsafe\fP when Asciidoctor is invoked using this script.
|
55
55
|
.RE
|
@@ -65,11 +65,11 @@ If not set, the safe mode level defaults to \fIunsafe\fP when Asciidoctor is inv
|
|
65
65
|
.sp
|
66
66
|
\fB\-a, \-\-attribute\fP=\fIATTRIBUTE\fP
|
67
67
|
.RS 4
|
68
|
-
Define, override or
|
69
|
-
Command\-line attributes take precedence over attributes defined in the source file unless the value ends
|
68
|
+
Define, override, or unset a document attribute.
|
69
|
+
Command\-line attributes take precedence over attributes defined in the source file unless either the name or value ends in \fI@\fP.
|
70
70
|
.sp
|
71
71
|
\fIATTRIBUTE\fP is normally formatted as a key\-value pair, in the form \fINAME=VALUE\fP.
|
72
|
-
Alternate
|
72
|
+
Alternate forms are \fINAME\fP (where the \fIVALUE\fP defaults to an empty string), \fINAME!\fP (unsets the \fINAME\fP attribute), and \fINAME=VALUE@\fP (or \fINAME@=VALUE\fP) (where \fIVALUE\fP does not override the \fINAME\fP attribute if it\(cqs already defined in the source document).
|
73
73
|
Values containing spaces should be enclosed in quotes.
|
74
74
|
.sp
|
75
75
|
This option may be specified more than once.
|
@@ -77,7 +77,7 @@ This option may be specified more than once.
|
|
77
77
|
.sp
|
78
78
|
\fB\-b, \-\-backend\fP=\fIBACKEND\fP
|
79
79
|
.RS 4
|
80
|
-
Backend output file format: \fIhtml5\fP, \fIdocbook5\fP,
|
80
|
+
Backend output file format: \fIhtml5\fP, \fIdocbook5\fP, and \fImanpage\fP are supported out of the box.
|
81
81
|
You can also use the backend alias names \fIhtml\fP (aliased to \fIhtml5\fP) or \fIdocbook\fP (aliased to \fIdocbook5\fP).
|
82
82
|
Other values can be passed, but if Asciidoctor cannot resolve the backend to a converter, it will fail.
|
83
83
|
Defaults to \fIhtml5\fP.
|
@@ -85,7 +85,7 @@ Defaults to \fIhtml5\fP.
|
|
85
85
|
.sp
|
86
86
|
\fB\-d, \-\-doctype\fP=\fIDOCTYPE\fP
|
87
87
|
.RS 4
|
88
|
-
Document type: \fIarticle\fP, \fIbook\fP, \fImanpage\fP or \fIinline\fP.
|
88
|
+
Document type: \fIarticle\fP, \fIbook\fP, \fImanpage\fP, or \fIinline\fP.
|
89
89
|
Sets the root element when using the \fIdocbook\fP backend and the style class on the HTML body element when using the \fIhtml\fP backend.
|
90
90
|
The \fIbook\fP document type allows multiple level\-0 section titles in a single document.
|
91
91
|
The \fImanpage\fP document type enables parsing of metadata necessary to produce a man page.
|
@@ -97,7 +97,7 @@ Defaults to \fIarticle\fP.
|
|
97
97
|
\fB\-D, \-\-destination\-dir\fP=\fIDIR\fP
|
98
98
|
.RS 4
|
99
99
|
Destination output directory.
|
100
|
-
Defaults to the directory containing the source file
|
100
|
+
Defaults to the directory containing the source file or, if the source is read from a stream, the working directory.
|
101
101
|
If specified, the directory is resolved relative to the working directory.
|
102
102
|
.RE
|
103
103
|
.sp
|
@@ -109,11 +109,10 @@ This name is also used to build the full path to the custom converter templates.
|
|
109
109
|
If a template engine is not specified, it will be auto\-detected based on the file extension of the custom converter templates found.
|
110
110
|
.RE
|
111
111
|
.sp
|
112
|
-
\fB\-e, \-\-
|
112
|
+
\fB\-e, \-\-embedded\fP
|
113
113
|
.RS 4
|
114
|
-
|
115
|
-
|
116
|
-
Defaults to \fIerb\fP.
|
114
|
+
Output an embeddable document, which excludes the header, the footer, and everything outside the body of the document.
|
115
|
+
This option is useful for producing documents that can be inserted into an external template.
|
117
116
|
.RE
|
118
117
|
.sp
|
119
118
|
\fB\-I, \-\-load\-path\fP=\fIDIRECTORY\fP
|
@@ -172,51 +171,56 @@ Matching templates found in subsequent directories override ones previously disc
|
|
172
171
|
.sp
|
173
172
|
\fB\-\-failure\-level\fP=\fILEVEL\fP
|
174
173
|
.RS 4
|
175
|
-
|
176
|
-
If this option is not set
|
174
|
+
Set the minimum logging level (default: FATAL) that yields a non\-zero exit code (i.e., failure).
|
175
|
+
If this option is not set, the program exits with a zero exit code even if warnings or errors have been logged.
|
177
176
|
.RE
|
178
177
|
.sp
|
179
178
|
\fB\-q, \-\-quiet\fP
|
180
179
|
.RS 4
|
181
|
-
Silence warnings.
|
180
|
+
Silence application log messages and script warnings.
|
182
181
|
.RE
|
183
182
|
.sp
|
184
183
|
\fB\-\-trace\fP
|
185
184
|
.RS 4
|
186
|
-
Include backtrace information
|
187
|
-
Not enabled by default.
|
185
|
+
Include backtrace information when reporting errors.
|
188
186
|
.RE
|
189
187
|
.sp
|
190
188
|
\fB\-v, \-\-verbose\fP
|
191
189
|
.RS 4
|
192
|
-
|
190
|
+
Sets log level to DEBUG so application messages logged at INFO or DEBUG level are printed to stderr.
|
191
|
+
.RE
|
192
|
+
.sp
|
193
|
+
\fB\-w, \-\-warnings\fP
|
194
|
+
.RS 4
|
195
|
+
Turn on script warnings (applies to executed code).
|
193
196
|
.RE
|
194
197
|
.sp
|
195
198
|
\fB\-t, \-\-timings\fP
|
196
199
|
.RS 4
|
197
|
-
|
200
|
+
Print timings report to stderr (time to read, parse, and convert).
|
198
201
|
.RE
|
199
202
|
.SS "Program Information"
|
200
203
|
.sp
|
201
204
|
\fB\-h, \-\-help\fP [\fITOPIC\fP]
|
202
205
|
.RS 4
|
203
|
-
Print
|
204
|
-
Show the command usage if \fITOPIC\fP is not specified
|
206
|
+
Print a help message.
|
207
|
+
Show the command usage if \fITOPIC\fP is not specified or recognized.
|
205
208
|
Dump the Asciidoctor man page (in troff/groff format) if \fITOPIC\fP is \fImanpage\fP.
|
209
|
+
Print an AsciiDoc syntax crib sheet (in AsciiDoc) if \fITOPIC\fP is \fIsyntax\fP.
|
206
210
|
.RE
|
207
211
|
.sp
|
208
212
|
\fB\-V, \-\-version\fP
|
209
213
|
.RS 4
|
210
214
|
Print program version number.
|
211
215
|
.sp
|
212
|
-
\
|
216
|
+
\fB\-v\fP can also be used if no source files are specified.
|
213
217
|
.RE
|
214
218
|
.SH "ENVIRONMENT"
|
215
219
|
.sp
|
216
220
|
\fBAsciidoctor\fP honors the \fBSOURCE_DATE_EPOCH\fP environment variable.
|
217
221
|
If this variable is assigned an integer value, that value is used as the epoch of all input documents and as the local date and time.
|
218
222
|
See \c
|
219
|
-
.URL "https://reproducible\-builds.org/specs/source\-date\-epoch/" "" "
|
223
|
+
.URL "https://reproducible\-builds.org/specs/source\-date\-epoch/" "" ""
|
220
224
|
for more information about this environment variable.
|
221
225
|
.SH "EXIT STATUS"
|
222
226
|
.sp
|
@@ -235,30 +239,28 @@ Refer to the \fBAsciidoctor\fP issue tracker at \c
|
|
235
239
|
.URL "https://github.com/asciidoctor/asciidoctor/issues?q=is%3Aopen" "" "."
|
236
240
|
.SH "AUTHORS"
|
237
241
|
.sp
|
238
|
-
\fBAsciidoctor\fP
|
242
|
+
\fBAsciidoctor\fP is led and maintained by Dan Allen and Sarah White and has received contributions from many individuals in the Asciidoctor community.
|
243
|
+
The project was started in 2012 by Ryan Waldron based on a prototype written by Nick Hengeveld for the Git website.
|
244
|
+
Jason Porter wrote the first implementation of the CLI interface provided by this command.
|
239
245
|
.sp
|
240
|
-
\fBAsciiDoc\fP was
|
246
|
+
\fBAsciiDoc.py\fP was created by Stuart Rackham and has received contributions from many individuals in the AsciiDoc.py community.
|
241
247
|
.SH "RESOURCES"
|
242
248
|
.sp
|
243
|
-
\fBProject
|
249
|
+
\fBProject website:\fP \c
|
244
250
|
.URL "https://asciidoctor.org" "" ""
|
245
251
|
.sp
|
246
|
-
\
|
252
|
+
\fBProject documentation:\fP \c
|
253
|
+
.URL "https://docs.asciidoctor.org" "" ""
|
254
|
+
.sp
|
255
|
+
\fBSource repository:\fP \c
|
247
256
|
.URL "https://github.com/asciidoctor/asciidoctor" "" ""
|
248
257
|
.sp
|
249
|
-
\
|
250
|
-
.URL "https://
|
258
|
+
\fBCommunity chat:\fP \c
|
259
|
+
.URL "https://asciidoctor.zulipchat.com" "" ""
|
251
260
|
.sp
|
252
|
-
\fBDiscussion list
|
253
|
-
.URL "
|
261
|
+
\fBDiscussion list:\fP \c
|
262
|
+
.URL "https://discuss.asciidoctor.org" "" ""
|
254
263
|
.SH "COPYING"
|
255
264
|
.sp
|
256
|
-
Copyright (C) 2012\-
|
257
|
-
|
258
|
-
.SH "AUTHORS"
|
259
|
-
.sp
|
260
|
-
Dan Allen
|
261
|
-
.sp
|
262
|
-
Sarah White
|
263
|
-
.sp
|
264
|
-
Ryan Waldron
|
265
|
+
Copyright (C) 2012\-present Dan Allen, Sarah White, Ryan Waldron, and the individual contributors to Asciidoctor.
|
266
|
+
Use of this software is granted under the terms of the MIT License.
|
data/man/asciidoctor.adoc
CHANGED
@@ -1,35 +1,37 @@
|
|
1
1
|
= asciidoctor(1)
|
2
|
-
Dan Allen; Sarah White
|
2
|
+
Dan Allen; Sarah White
|
3
3
|
:doctype: manpage
|
4
|
+
:release-version: 2.0.17
|
4
5
|
:man manual: Asciidoctor Manual
|
5
|
-
:man source: Asciidoctor
|
6
|
-
|
6
|
+
:man source: Asciidoctor {release-version}
|
7
|
+
ifdef::backend-manpage[:!author:]
|
7
8
|
|
8
|
-
==
|
9
|
+
== Name
|
9
10
|
|
10
|
-
asciidoctor - converts AsciiDoc source files to HTML, DocBook and other formats
|
11
|
+
asciidoctor - converts AsciiDoc source files to HTML, DocBook, and other formats
|
11
12
|
|
12
|
-
==
|
13
|
+
== Synopsis
|
13
14
|
|
14
15
|
*asciidoctor* [_OPTION_]... _FILE_...
|
15
16
|
|
16
|
-
==
|
17
|
+
== Description
|
17
18
|
|
18
|
-
The asciidoctor(1) command converts the AsciiDoc source file(s) _FILE_ to HTML5, DocBook 5,
|
19
|
+
The asciidoctor(1) command converts the AsciiDoc source file(s) _FILE_ to HTML5, DocBook 5, man(ual) page, and other custom output formats.
|
19
20
|
|
20
21
|
If _FILE_ is _-_ then the AsciiDoc source is read from standard input.
|
21
22
|
|
22
|
-
==
|
23
|
+
== Options
|
23
24
|
|
25
|
+
// tag::options[]
|
24
26
|
=== Security Settings
|
25
27
|
|
26
28
|
*-B, --base-dir*=_DIR_::
|
27
29
|
Base directory containing the document and resources.
|
28
|
-
Defaults to the directory containing the source file
|
30
|
+
Defaults to the directory containing the source file or, if the source is read from a stream, the working directory.
|
29
31
|
When combined with the safe mode setting, can be used to chroot the execution of the program.
|
30
32
|
|
31
33
|
*-S, --safe-mode*=_SAFE_MODE_::
|
32
|
-
Set safe mode level: _unsafe_, _safe_, _server_ or _secure_.
|
34
|
+
Set safe mode level: _unsafe_, _safe_, _server_, or _secure_.
|
33
35
|
Disables potentially dangerous macros in source files, such as `include::[]`.
|
34
36
|
If not set, the safe mode level defaults to _unsafe_ when Asciidoctor is invoked using this script.
|
35
37
|
|
@@ -42,23 +44,23 @@ If _FILE_ is _-_ then the AsciiDoc source is read from standard input.
|
|
42
44
|
=== Document Settings
|
43
45
|
|
44
46
|
*-a, --attribute*=_ATTRIBUTE_::
|
45
|
-
Define, override or
|
46
|
-
Command-line attributes take precedence over attributes defined in the source file unless the value ends
|
47
|
+
Define, override, or unset a document attribute.
|
48
|
+
Command-line attributes take precedence over attributes defined in the source file unless either the name or value ends in _@_.
|
47
49
|
+
|
48
50
|
_ATTRIBUTE_ is normally formatted as a key-value pair, in the form _NAME=VALUE_.
|
49
|
-
Alternate
|
51
|
+
Alternate forms are _NAME_ (where the _VALUE_ defaults to an empty string), _NAME!_ (unsets the _NAME_ attribute), and _NAME=VALUE@_ (or _NAME@=VALUE_) (where _VALUE_ does not override the _NAME_ attribute if it's already defined in the source document).
|
50
52
|
Values containing spaces should be enclosed in quotes.
|
51
53
|
+
|
52
54
|
This option may be specified more than once.
|
53
55
|
|
54
56
|
*-b, --backend*=_BACKEND_::
|
55
|
-
Backend output file format: _html5_, _docbook5_,
|
57
|
+
Backend output file format: _html5_, _docbook5_, and _manpage_ are supported out of the box.
|
56
58
|
You can also use the backend alias names _html_ (aliased to _html5_) or _docbook_ (aliased to _docbook5_).
|
57
59
|
Other values can be passed, but if Asciidoctor cannot resolve the backend to a converter, it will fail.
|
58
60
|
Defaults to _html5_.
|
59
61
|
|
60
62
|
*-d, --doctype*=_DOCTYPE_::
|
61
|
-
Document type: _article_, _book_, _manpage_ or _inline_.
|
63
|
+
Document type: _article_, _book_, _manpage_, or _inline_.
|
62
64
|
Sets the root element when using the _docbook_ backend and the style class on the HTML body element when using the _html_ backend.
|
63
65
|
The _book_ document type allows multiple level-0 section titles in a single document.
|
64
66
|
The _manpage_ document type enables parsing of metadata necessary to produce a man page.
|
@@ -69,7 +71,7 @@ This option may be specified more than once.
|
|
69
71
|
|
70
72
|
*-D, --destination-dir*=_DIR_::
|
71
73
|
Destination output directory.
|
72
|
-
Defaults to the directory containing the source file
|
74
|
+
Defaults to the directory containing the source file or, if the source is read from a stream, the working directory.
|
73
75
|
If specified, the directory is resolved relative to the working directory.
|
74
76
|
|
75
77
|
*-E, --template-engine*=_NAME_::
|
@@ -78,10 +80,9 @@ This option may be specified more than once.
|
|
78
80
|
This name is also used to build the full path to the custom converter templates.
|
79
81
|
If a template engine is not specified, it will be auto-detected based on the file extension of the custom converter templates found.
|
80
82
|
|
81
|
-
*-e, --
|
82
|
-
|
83
|
-
|
84
|
-
Defaults to _erb_.
|
83
|
+
*-e, --embedded*::
|
84
|
+
Output an embeddable document, which excludes the header, the footer, and everything outside the body of the document.
|
85
|
+
This option is useful for producing documents that can be inserted into an external template.
|
85
86
|
|
86
87
|
*-I, --load-path*=_DIRECTORY_::
|
87
88
|
Add the specified directory to the load path, so that _-r_ can load extensions from outside the default Ruby load path.
|
@@ -125,41 +126,45 @@ Matching templates found in subsequent directories override ones previously disc
|
|
125
126
|
=== Processing Information
|
126
127
|
|
127
128
|
*--failure-level*=_LEVEL_::
|
128
|
-
|
129
|
-
If this option is not set
|
129
|
+
Set the minimum logging level (default: FATAL) that yields a non-zero exit code (i.e., failure).
|
130
|
+
If this option is not set, the program exits with a zero exit code even if warnings or errors have been logged.
|
130
131
|
|
131
132
|
*-q, --quiet*::
|
132
|
-
Silence warnings.
|
133
|
+
Silence application log messages and script warnings.
|
133
134
|
|
134
135
|
*--trace*::
|
135
|
-
Include backtrace information
|
136
|
-
Not enabled by default.
|
136
|
+
Include backtrace information when reporting errors.
|
137
137
|
|
138
138
|
*-v, --verbose*::
|
139
|
-
|
139
|
+
Sets log level to DEBUG so application messages logged at INFO or DEBUG level are printed to stderr.
|
140
|
+
|
141
|
+
*-w, --warnings*::
|
142
|
+
Turn on script warnings (applies to executed code).
|
140
143
|
|
141
144
|
*-t, --timings*::
|
142
|
-
|
145
|
+
Print timings report to stderr (time to read, parse, and convert).
|
143
146
|
|
144
147
|
=== Program Information
|
145
148
|
|
146
149
|
*-h, --help* [_TOPIC_]::
|
147
|
-
Print
|
148
|
-
Show the command usage if _TOPIC_ is not specified
|
150
|
+
Print a help message.
|
151
|
+
Show the command usage if _TOPIC_ is not specified or recognized.
|
149
152
|
Dump the Asciidoctor man page (in troff/groff format) if _TOPIC_ is _manpage_.
|
153
|
+
Print an AsciiDoc syntax crib sheet (in AsciiDoc) if _TOPIC_ is _syntax_.
|
150
154
|
|
151
155
|
*-V, --version*::
|
152
156
|
Print program version number.
|
153
157
|
+
|
154
|
-
|
158
|
+
*-v* can also be used if no source files are specified.
|
159
|
+
// end::options[]
|
155
160
|
|
156
|
-
==
|
161
|
+
== Environment
|
157
162
|
|
158
163
|
*Asciidoctor* honors the *SOURCE_DATE_EPOCH* environment variable.
|
159
164
|
If this variable is assigned an integer value, that value is used as the epoch of all input documents and as the local date and time.
|
160
165
|
See https://reproducible-builds.org/specs/source-date-epoch/ for more information about this environment variable.
|
161
166
|
|
162
|
-
==
|
167
|
+
== Exit Status
|
163
168
|
|
164
169
|
*0*::
|
165
170
|
Success.
|
@@ -167,27 +172,31 @@ See https://reproducible-builds.org/specs/source-date-epoch/ for more informatio
|
|
167
172
|
*1*::
|
168
173
|
Failure (syntax or usage error; configuration error; document processing failure; unexpected error).
|
169
174
|
|
170
|
-
==
|
175
|
+
== Bugs
|
171
176
|
|
172
177
|
Refer to the *Asciidoctor* issue tracker at https://github.com/asciidoctor/asciidoctor/issues?q=is%3Aopen.
|
173
178
|
|
174
|
-
==
|
179
|
+
== Authors
|
180
|
+
|
181
|
+
*Asciidoctor* is led and maintained by Dan Allen and Sarah White and has received contributions from many individuals in the Asciidoctor community.
|
182
|
+
The project was started in 2012 by Ryan Waldron based on a prototype written by Nick Hengeveld for the Git website.
|
183
|
+
Jason Porter wrote the first implementation of the CLI interface provided by this command.
|
175
184
|
|
176
|
-
*
|
185
|
+
*AsciiDoc.py* was created by Stuart Rackham and has received contributions from many individuals in the AsciiDoc.py community.
|
177
186
|
|
178
|
-
|
187
|
+
== Resources
|
179
188
|
|
180
|
-
|
189
|
+
*Project website:* https://asciidoctor.org
|
181
190
|
|
182
|
-
*Project
|
191
|
+
*Project documentation:* https://docs.asciidoctor.org
|
183
192
|
|
184
|
-
*
|
193
|
+
*Source repository:* https://github.com/asciidoctor/asciidoctor
|
185
194
|
|
186
|
-
*
|
195
|
+
*Community chat:* https://asciidoctor.zulipchat.com
|
187
196
|
|
188
|
-
*Discussion list
|
197
|
+
*Discussion list:* https://discuss.asciidoctor.org
|
189
198
|
|
190
|
-
==
|
199
|
+
== Copying
|
191
200
|
|
192
|
-
Copyright \(C) 2012-
|
193
|
-
|
201
|
+
Copyright \(C) 2012-present Dan Allen, Sarah White, Ryan Waldron, and the individual contributors to Asciidoctor.
|
202
|
+
Use of this software is granted under the terms of the MIT License.
|