asciidoctor 1.5.8 → 2.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +11 -0
  3. data/CHANGELOG.adoc +628 -45
  4. data/LICENSE +2 -1
  5. data/README-de.adoc +28 -38
  6. data/README-fr.adoc +30 -43
  7. data/README-jp.adoc +255 -201
  8. data/README-zh_CN.adoc +40 -44
  9. data/README.adoc +170 -143
  10. data/asciidoctor.gemspec +22 -34
  11. data/bin/asciidoctor +5 -4
  12. data/data/locale/attributes-ar.adoc +4 -3
  13. data/data/locale/attributes-be.adoc +23 -0
  14. data/data/locale/attributes-bg.adoc +4 -3
  15. data/data/locale/attributes-ca.adoc +6 -5
  16. data/data/locale/attributes-cs.adoc +4 -3
  17. data/data/locale/attributes-da.adoc +6 -5
  18. data/data/locale/attributes-de.adoc +6 -5
  19. data/data/locale/attributes-en.adoc +4 -4
  20. data/data/locale/attributes-es.adoc +6 -5
  21. data/data/locale/attributes-fa.adoc +4 -3
  22. data/data/locale/attributes-fi.adoc +4 -3
  23. data/data/locale/attributes-fr.adoc +8 -7
  24. data/data/locale/attributes-hu.adoc +4 -3
  25. data/data/locale/attributes-id.adoc +4 -3
  26. data/data/locale/attributes-it.adoc +6 -5
  27. data/data/locale/attributes-ja.adoc +4 -3
  28. data/data/locale/{attributes-kr.adoc → attributes-ko.adoc} +4 -3
  29. data/data/locale/attributes-nb.adoc +4 -3
  30. data/data/locale/attributes-nl.adoc +6 -5
  31. data/data/locale/attributes-nn.adoc +4 -3
  32. data/data/locale/attributes-pl.adoc +8 -7
  33. data/data/locale/attributes-pt.adoc +6 -5
  34. data/data/locale/attributes-pt_BR.adoc +6 -5
  35. data/data/locale/attributes-ro.adoc +4 -3
  36. data/data/locale/attributes-ru.adoc +6 -5
  37. data/data/locale/attributes-sr.adoc +4 -4
  38. data/data/locale/attributes-sr_Latn.adoc +4 -4
  39. data/data/locale/attributes-sv.adoc +4 -4
  40. data/data/locale/attributes-th.adoc +23 -0
  41. data/data/locale/attributes-tr.adoc +4 -3
  42. data/data/locale/attributes-uk.adoc +6 -5
  43. data/data/locale/attributes-vi.adoc +23 -0
  44. data/data/locale/attributes-zh_CN.adoc +4 -3
  45. data/data/locale/attributes-zh_TW.adoc +4 -3
  46. data/data/reference/syntax.adoc +296 -0
  47. data/data/stylesheets/asciidoctor-default.css +120 -114
  48. data/data/stylesheets/coderay-asciidoctor.css +15 -17
  49. data/lib/asciidoctor/abstract_block.rb +146 -140
  50. data/lib/asciidoctor/abstract_node.rb +152 -170
  51. data/lib/asciidoctor/attribute_list.rb +77 -89
  52. data/lib/asciidoctor/block.rb +29 -28
  53. data/lib/asciidoctor/callouts.rb +4 -2
  54. data/lib/asciidoctor/cli/invoker.rb +20 -24
  55. data/lib/asciidoctor/cli/options.rb +107 -96
  56. data/lib/asciidoctor/cli.rb +3 -2
  57. data/lib/asciidoctor/convert.rb +199 -0
  58. data/lib/asciidoctor/converter/composite.rb +40 -48
  59. data/lib/asciidoctor/converter/docbook5.rb +627 -644
  60. data/lib/asciidoctor/converter/html5.rb +1053 -951
  61. data/lib/asciidoctor/converter/manpage.rb +581 -532
  62. data/lib/asciidoctor/converter/template.rb +232 -271
  63. data/lib/asciidoctor/converter.rb +370 -185
  64. data/lib/asciidoctor/core_ext/float/truncate.rb +20 -0
  65. data/lib/asciidoctor/core_ext/hash/merge.rb +8 -0
  66. data/lib/asciidoctor/core_ext/match_data/names.rb +7 -0
  67. data/lib/asciidoctor/core_ext/nil_or_empty.rb +1 -0
  68. data/lib/asciidoctor/core_ext/regexp/is_match.rb +4 -2
  69. data/lib/asciidoctor/core_ext.rb +8 -17
  70. data/lib/asciidoctor/document.rb +503 -461
  71. data/lib/asciidoctor/extensions.rb +127 -174
  72. data/lib/asciidoctor/helpers.rb +184 -107
  73. data/lib/asciidoctor/inline.rb +9 -12
  74. data/lib/asciidoctor/list.rb +11 -29
  75. data/lib/asciidoctor/load.rb +119 -0
  76. data/lib/asciidoctor/logging.rb +22 -17
  77. data/lib/asciidoctor/parser.rb +673 -719
  78. data/lib/asciidoctor/path_resolver.rb +48 -33
  79. data/lib/asciidoctor/reader.rb +383 -338
  80. data/lib/asciidoctor/rouge_ext.rb +39 -0
  81. data/lib/asciidoctor/rx.rb +723 -0
  82. data/lib/asciidoctor/section.rb +17 -16
  83. data/lib/asciidoctor/stylesheets.rb +19 -37
  84. data/lib/asciidoctor/substitutors.rb +926 -1022
  85. data/lib/asciidoctor/syntax_highlighter/coderay.rb +88 -0
  86. data/lib/asciidoctor/syntax_highlighter/highlightjs.rb +34 -0
  87. data/lib/asciidoctor/syntax_highlighter/html_pipeline.rb +10 -0
  88. data/lib/asciidoctor/syntax_highlighter/prettify.rb +30 -0
  89. data/lib/asciidoctor/syntax_highlighter/pygments.rb +157 -0
  90. data/lib/asciidoctor/syntax_highlighter/rouge.rb +143 -0
  91. data/lib/asciidoctor/syntax_highlighter.rb +253 -0
  92. data/lib/asciidoctor/table.rb +152 -114
  93. data/lib/asciidoctor/timings.rb +7 -5
  94. data/lib/asciidoctor/version.rb +2 -1
  95. data/lib/asciidoctor/writer.rb +30 -0
  96. data/lib/asciidoctor.rb +266 -1340
  97. data/man/asciidoctor.1 +49 -47
  98. data/man/asciidoctor.adoc +54 -45
  99. metadata +50 -245
  100. data/CONTRIBUTING.adoc +0 -185
  101. data/Gemfile +0 -60
  102. data/Rakefile +0 -129
  103. data/bin/asciidoctor-safe +0 -15
  104. data/features/open_block.feature +0 -92
  105. data/features/pass_block.feature +0 -66
  106. data/features/step_definitions.rb +0 -49
  107. data/features/text_formatting.feature +0 -57
  108. data/features/xref.feature +0 -1039
  109. data/lib/asciidoctor/converter/base.rb +0 -59
  110. data/lib/asciidoctor/converter/docbook45.rb +0 -93
  111. data/lib/asciidoctor/converter/factory.rb +0 -226
  112. data/lib/asciidoctor/core_ext/1.8.7/base64/strict_encode64.rb +0 -6
  113. data/lib/asciidoctor/core_ext/1.8.7/concurrent/hash.rb +0 -5
  114. data/lib/asciidoctor/core_ext/1.8.7/hash/key.rb +0 -4
  115. data/lib/asciidoctor/core_ext/1.8.7/io/binread.rb +0 -6
  116. data/lib/asciidoctor/core_ext/1.8.7/io/write.rb +0 -5
  117. data/lib/asciidoctor/core_ext/1.8.7/string/chr.rb +0 -6
  118. data/lib/asciidoctor/core_ext/1.8.7/string/limit_bytesize.rb +0 -29
  119. data/lib/asciidoctor/core_ext/1.8.7/symbol/empty.rb +0 -6
  120. data/lib/asciidoctor/core_ext/1.8.7/symbol/length.rb +0 -6
  121. data/lib/asciidoctor/core_ext/string/limit_bytesize.rb +0 -10
  122. data/test/api_test.rb +0 -1240
  123. data/test/attribute_list_test.rb +0 -242
  124. data/test/attributes_test.rb +0 -1623
  125. data/test/blocks_test.rb +0 -3870
  126. data/test/converter_test.rb +0 -470
  127. data/test/document_test.rb +0 -1853
  128. data/test/extensions_test.rb +0 -1560
  129. data/test/fixtures/asciidoc_index.txt +0 -521
  130. data/test/fixtures/basic-docinfo-footer.html +0 -6
  131. data/test/fixtures/basic-docinfo-footer.xml +0 -8
  132. data/test/fixtures/basic-docinfo.html +0 -1
  133. data/test/fixtures/basic-docinfo.xml +0 -4
  134. data/test/fixtures/basic.asciidoc +0 -5
  135. data/test/fixtures/chapter-a.adoc +0 -3
  136. data/test/fixtures/child-include.adoc +0 -5
  137. data/test/fixtures/circle.svg +0 -9
  138. data/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb +0 -6
  139. data/test/fixtures/custom-backends/haml/docbook45/block_paragraph.xml.haml +0 -6
  140. data/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml +0 -3
  141. data/test/fixtures/custom-backends/haml/html5/block_sidebar.html.haml +0 -5
  142. data/test/fixtures/custom-backends/haml/html5-tweaks/block_paragraph.html.haml +0 -1
  143. data/test/fixtures/custom-backends/slim/docbook45/block_paragraph.xml.slim +0 -6
  144. data/test/fixtures/custom-backends/slim/html5/block_paragraph.html.slim +0 -3
  145. data/test/fixtures/custom-backends/slim/html5/block_sidebar.html.slim +0 -5
  146. data/test/fixtures/custom-docinfodir/basic-docinfo.html +0 -1
  147. data/test/fixtures/custom-docinfodir/docinfo.html +0 -1
  148. data/test/fixtures/docinfo-footer.html +0 -1
  149. data/test/fixtures/docinfo-footer.xml +0 -9
  150. data/test/fixtures/docinfo.html +0 -1
  151. data/test/fixtures/docinfo.xml +0 -3
  152. data/test/fixtures/doctime-localtime.adoc +0 -2
  153. data/test/fixtures/dot.gif +0 -0
  154. data/test/fixtures/encoding.asciidoc +0 -13
  155. data/test/fixtures/file-with-missing-include.adoc +0 -1
  156. data/test/fixtures/grandchild-include.adoc +0 -3
  157. data/test/fixtures/hello-asciidoctor.pdf +0 -69
  158. data/test/fixtures/include-file.asciidoc +0 -24
  159. data/test/fixtures/include-file.jsx +0 -8
  160. data/test/fixtures/include-file.ml +0 -3
  161. data/test/fixtures/include-file.xml +0 -5
  162. data/test/fixtures/lists.adoc +0 -96
  163. data/test/fixtures/master.adoc +0 -5
  164. data/test/fixtures/mismatched-end-tag.adoc +0 -7
  165. data/test/fixtures/other-chapters.adoc +0 -11
  166. data/test/fixtures/outer-include.adoc +0 -5
  167. data/test/fixtures/parent-include-restricted.adoc +0 -5
  168. data/test/fixtures/parent-include.adoc +0 -5
  169. data/test/fixtures/sample.asciidoc +0 -30
  170. data/test/fixtures/section-a.adoc +0 -4
  171. data/test/fixtures/stylesheets/custom.css +0 -3
  172. data/test/fixtures/subdir/index.adoc +0 -3
  173. data/test/fixtures/subdir/inner-include.adoc +0 -3
  174. data/test/fixtures/subdir/middle-include.adoc +0 -5
  175. data/test/fixtures/subs-docinfo.html +0 -2
  176. data/test/fixtures/subs.adoc +0 -6
  177. data/test/fixtures/tagged-class-enclosed.rb +0 -25
  178. data/test/fixtures/tagged-class.rb +0 -23
  179. data/test/fixtures/tip.gif +0 -0
  180. data/test/fixtures/unclosed-tag.adoc +0 -3
  181. data/test/fixtures/unexpected-end-tag.adoc +0 -4
  182. data/test/invoker_test.rb +0 -745
  183. data/test/links_test.rb +0 -855
  184. data/test/lists_test.rb +0 -5151
  185. data/test/logger_test.rb +0 -211
  186. data/test/manpage_test.rb +0 -660
  187. data/test/options_test.rb +0 -262
  188. data/test/paragraphs_test.rb +0 -562
  189. data/test/parser_test.rb +0 -742
  190. data/test/paths_test.rb +0 -395
  191. data/test/preamble_test.rb +0 -173
  192. data/test/reader_test.rb +0 -2161
  193. data/test/sections_test.rb +0 -3575
  194. data/test/substitutions_test.rb +0 -2066
  195. data/test/tables_test.rb +0 -2036
  196. data/test/test_helper.rb +0 -447
  197. 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, Ryan Waldron
4
- .\" Generator: Asciidoctor 1.5.8
5
- .\" Date: 2018-10-28
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 1.5.8
7
+ .\" Source: Asciidoctor 2.0.17
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "ASCIIDOCTOR" "1" "2018-10-28" "Asciidoctor 1.5.8" "Asciidoctor Manual"
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, DocBook 4.5, man(ual) page and other custom output formats.
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, or the working directory if the source is read from a stream.
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 delete a document attribute.
69
- Command\-line attributes take precedence over attributes defined in the source file unless the value ends with \fI@\fP.
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 acceptable forms are \fINAME\fP (where the \fIVALUE\fP defaults to an empty string), \fINAME!\fP (unassigns the \fINAME\fP attribute) and \fINAME=VALUE@\fP (where \fIVALUE\fP does not override value of \fINAME\fP attribute if it\(cqs already defined in the source document).
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, \fIdocbook45\fP and \fImanpage\fP are supported out of the box.
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, or the working directory if the source is read from a stream.
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, \-\-eruby\fP
112
+ \fB\-e, \-\-embedded\fP
113
113
  .RS 4
114
- Specifies the eRuby implementation to use for executing the custom converter templates written in ERB.
115
- Supported values are \fIerb\fP and \fIerubis\fP.
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
- The minimum logging level that triggers a non\-zero exit code (failure).
176
- If this option is not set (default: FATAL), the program exits with a status code zero even if warnings or errors have been logged.
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 on errors.
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
- Verbosely print processing information and configuration file checks to stderr.
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
- Display timings information (time to read, parse and convert).
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 the help message.
204
- Show the command usage if \fITOPIC\fP is not specified (or not recognized).
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
- \f(CR\-v\fP can also be used if no other flags or arguments are present.
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 was written by Dan Allen, Ryan Waldron, Jason Porter, Nick Hengeveld and other contributors.
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 written by Stuart Rackham and has received contributions from many other individuals.
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 web site:\fP \c
249
+ \fBProject website:\fP \c
244
250
  .URL "https://asciidoctor.org" "" ""
245
251
  .sp
246
- \fBGit source repository on GitHub:\fP \c
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
- \fBGitHub organization:\fP \c
250
- .URL "https://github.com/asciidoctor" "" ""
258
+ \fBCommunity chat:\fP \c
259
+ .URL "https://asciidoctor.zulipchat.com" "" ""
251
260
  .sp
252
- \fBDiscussion list / forum:\fP \c
253
- .URL "http://discuss.asciidoctor.org" "" ""
261
+ \fBDiscussion list:\fP \c
262
+ .URL "https://discuss.asciidoctor.org" "" ""
254
263
  .SH "COPYING"
255
264
  .sp
256
- Copyright (C) 2012\-2018 Dan Allen, Ryan Waldron and the Asciidoctor Project.
257
- Free use of this software is granted under the terms of the MIT License.
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; Ryan Waldron
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 1.5.8
6
- :page-layout: base
6
+ :man source: Asciidoctor {release-version}
7
+ ifdef::backend-manpage[:!author:]
7
8
 
8
- == NAME
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
- == SYNOPSIS
13
+ == Synopsis
13
14
 
14
15
  *asciidoctor* [_OPTION_]... _FILE_...
15
16
 
16
- == DESCRIPTION
17
+ == Description
17
18
 
18
- The asciidoctor(1) command converts the AsciiDoc source file(s) _FILE_ to HTML5, DocBook 5, DocBook 4.5, man(ual) page and other custom output formats.
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
- == OPTIONS
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, or the working directory if the source is read from a stream.
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 delete a document attribute.
46
- Command-line attributes take precedence over attributes defined in the source file unless the value ends with _@_.
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 acceptable forms are _NAME_ (where the _VALUE_ defaults to an empty string), _NAME!_ (unassigns the _NAME_ attribute) and _NAME=VALUE@_ (where _VALUE_ does not override value of _NAME_ attribute if it's already defined in the source document).
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_, _docbook45_ and _manpage_ are supported out of the box.
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, or the working directory if the source is read from a stream.
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, --eruby*::
82
- Specifies the eRuby implementation to use for executing the custom converter templates written in ERB.
83
- Supported values are _erb_ and _erubis_.
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
- The minimum logging level that triggers a non-zero exit code (failure).
129
- If this option is not set (default: FATAL), the program exits with a status code zero even if warnings or errors have been logged.
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 on errors.
136
- Not enabled by default.
136
+ Include backtrace information when reporting errors.
137
137
 
138
138
  *-v, --verbose*::
139
- Verbosely print processing information and configuration file checks to stderr.
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
- Display timings information (time to read, parse and convert).
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 the help message.
148
- Show the command usage if _TOPIC_ is not specified (or not recognized).
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
- `-v` can also be used if no other flags or arguments are present.
158
+ *-v* can also be used if no source files are specified.
159
+ // end::options[]
155
160
 
156
- == ENVIRONMENT
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
- == EXIT STATUS
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
- == BUGS
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
- == AUTHORS
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
- *Asciidoctor* was written by Dan Allen, Ryan Waldron, Jason Porter, Nick Hengeveld and other contributors.
185
+ *AsciiDoc.py* was created by Stuart Rackham and has received contributions from many individuals in the AsciiDoc.py community.
177
186
 
178
- *AsciiDoc* was written by Stuart Rackham and has received contributions from many other individuals.
187
+ == Resources
179
188
 
180
- == RESOURCES
189
+ *Project website:* https://asciidoctor.org
181
190
 
182
- *Project web site:* https://asciidoctor.org
191
+ *Project documentation:* https://docs.asciidoctor.org
183
192
 
184
- *Git source repository on GitHub:* https://github.com/asciidoctor/asciidoctor
193
+ *Source repository:* https://github.com/asciidoctor/asciidoctor
185
194
 
186
- *GitHub organization:* https://github.com/asciidoctor
195
+ *Community chat:* https://asciidoctor.zulipchat.com
187
196
 
188
- *Discussion list / forum:* http://discuss.asciidoctor.org
197
+ *Discussion list:* https://discuss.asciidoctor.org
189
198
 
190
- == COPYING
199
+ == Copying
191
200
 
192
- Copyright \(C) 2012-2018 Dan Allen, Ryan Waldron and the Asciidoctor Project.
193
- Free use of this software is granted under the terms of the MIT License.
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.