asciidoctor 1.5.6.1 → 1.5.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of asciidoctor might be problematic. Click here for more details.

@@ -1,422 +0,0 @@
1
- = Asciidoctor
2
- Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]>
3
- v1.5.6.1, 2017-07-23
4
- // settings:
5
- :page-layout: base
6
- :idprefix:
7
- :idseparator: -
8
- :source-language: ruby
9
- :language: {source-language}
10
- ifndef::env-github[:icons: font]
11
- ifdef::env-github[]
12
- :status:
13
- :outfilesuffix: .adoc
14
- :caution-caption: :fire:
15
- :important-caption: :exclamation:
16
- :note-caption: :paperclip:
17
- :tip-caption: :bulb:
18
- :warning-caption: :warning:
19
- endif::[]
20
- // Variables:
21
- :release-version: 1.5.6.1
22
- // URIs:
23
- :uri-org: https://github.com/asciidoctor
24
- :uri-repo: {uri-org}/asciidoctor
25
- :uri-asciidoctorj: {uri-org}/asciidoctorj
26
- :uri-asciidoctorjs: {uri-org}/asciidoctor.js
27
- :uri-project: http://asciidoctor.org
28
- ifdef::env-site[:uri-project: link:]
29
- :uri-docs: {uri-project}/docs
30
- :uri-news: {uri-project}/news
31
- :uri-manpage: {uri-project}/man/asciidoctor
32
- :uri-issues: {uri-repo}/issues
33
- :uri-contributors: {uri-repo}/graphs/contributors
34
- :uri-rel-file-base: link:
35
- :uri-rel-tree-base: link:
36
- ifdef::env-site[]
37
- :uri-rel-file-base: {uri-repo}/blob/master/
38
- :uri-rel-tree-base: {uri-repo}/tree/master/
39
- endif::[]
40
- :uri-changelog: {uri-rel-file-base}CHANGELOG.adoc
41
- :uri-contribute: {uri-rel-file-base}CONTRIBUTING.adoc
42
- :uri-license: {uri-rel-file-base}LICENSE.adoc
43
- :uri-tests: {uri-rel-tree-base}test
44
- :uri-discuss: http://discuss.asciidoctor.org
45
- :uri-irc: irc://irc.freenode.org/#asciidoctor
46
- :uri-rubygem: https://rubygems.org/gems/asciidoctor
47
- :uri-what-is-asciidoc: {uri-docs}/what-is-asciidoc
48
- :uri-user-manual: {uri-docs}/user-manual
49
- :uri-install-docker: https://github.com/asciidoctor/docker-asciidoctor
50
- //:uri-install-doc: {uri-docs}/install-toolchain
51
- :uri-install-osx-doc: {uri-docs}/install-asciidoctor-macosx
52
- :uri-render-doc: {uri-docs}/render-documents
53
- :uri-themes-doc: {uri-docs}/produce-custom-themes-using-asciidoctor-stylesheet-factory
54
- :uri-gitscm-repo: https://github.com/git/git-scm.com
55
- :uri-prototype: {uri-gitscm-repo}/commits/master/lib/asciidoc.rb
56
- :uri-freesoftware: https://www.gnu.org/philosophy/free-sw.html
57
- :uri-foundation: http://foundation.zurb.com
58
- :uri-tilt: https://github.com/rtomayko/tilt
59
- :uri-ruby: https://ruby-lang.org
60
- // images:
61
- :image-uri-screenshot: https://raw.githubusercontent.com/asciidoctor/asciidoctor/master/screenshot.png
62
-
63
- {uri-project}/[Asciidoctor] is a _fast_ text processor and publishing toolchain for converting {uri-what-is-asciidoc}[AsciiDoc] content to HTML5, DocBook 5 (or 4.5) and other formats.
64
- Asciidoctor is written in Ruby, packaged as a RubyGem and published to {uri-rubygem}[RubyGems.org].
65
- The gem is also included in several Linux distributions, including Fedora, Debian and Ubuntu.
66
- Asciidoctor is open source, {uri-repo}[hosted on GitHub] and released under {uri-license}[the MIT license].
67
-
68
- ifndef::env-site[]
69
- Translations of this document are available in the following languages:
70
-
71
- * {uri-rel-file-base}README-zh_CN.adoc[汉语]
72
- * {uri-rel-file-base}README-fr.adoc[Français]
73
- * {uri-rel-file-base}README-jp.adoc[日本語]
74
- endif::[]
75
-
76
- .Key documentation
77
- [.compact]
78
- * {uri-docs}/what-is-asciidoc[What is Asciidoc?]
79
- * {uri-docs}/asciidoc-writers-guide[AsciiDoc Writer's Guide]
80
- * {uri-docs}/asciidoc-syntax-quick-reference[AsciiDoc Syntax Reference]
81
- * {uri-docs}/user-manual[Asciidoctor User Manual]
82
-
83
- .Where Ruby goes, Asciidoctor follows
84
- ****
85
- You can run Asciidoctor on the JVM using JRuby.
86
- To invoke the Asciidoctor API directly from Java and other JVM languages, use {uri-asciidoctorj}[AsciidoctorJ].
87
- There are plugins available, based on AsciidoctorJ, that integrate the Asciidoctor processor into Apache Maven, Gradle or Javadoc builds.
88
-
89
- Asciidoctor also runs in JavaScript.
90
- We use http://opalrb.org[Opal] to transcompile the Ruby source to JavaScript to produce {uri-asciidoctorjs}[Asciidoctor.js], a fully-functional version of Asciidoctor that works in any JavaScript environment, such as a web browser or Node.js.
91
- Asciidoctor.js is used to power the AsciiDoc preview extensions for Chrome, Atom, Brackets and other web-based tooling.
92
- ****
93
-
94
- ifdef::status[]
95
- .*Project health*
96
- image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI), link=https://travis-ci.org/asciidoctor/asciidoctor]
97
- image:https://ci.appveyor.com/api/projects/status/ifplu67oxvgn6ceq/branch/master?svg=true&amp;passingText=green%20bar&amp;failingText=%23fail&amp;pendingText=building%2E%2E%2E[Build Status (AppVeyor), link=https://ci.appveyor.com/project/asciidoctor/asciidoctor]
98
- //image:https://img.shields.io/coveralls/asciidoctor/asciidoctor/master.svg[Coverage Status, link=https://coveralls.io/r/asciidoctor/asciidoctor]
99
- image:https://codeclimate.com/github/asciidoctor/asciidoctor/badges/gpa.svg[Code Climate, link="https://codeclimate.com/github/asciidoctor/asciidoctor"]
100
- image:https://inch-ci.org/github/asciidoctor/asciidoctor.svg?branch=master[Inline docs, link="https://inch-ci.org/github/asciidoctor/asciidoctor"]
101
- endif::[]
102
-
103
- == The Big Picture
104
-
105
- Asciidoctor reads content written in plain text, as shown in the panel on the left in the image below, and converts it to HTML5, as shown rendered in the right panel.
106
- Asciidoctor applies a default stylesheet to the HTML5 document to provide a pleasant out-of-the-box experience.
107
-
108
- image::{image-uri-screenshot}[Preview of AsciiDoc source and corresponding rendered HTML]
109
-
110
- == AsciiDoc Processing
111
-
112
- Asciidoctor reads and parses text written in the AsciiDoc syntax, then feeds the parse tree to a set of built-in converters to produce HTML5, DocBook 5 (or 4.5) or man(ual) page output.
113
- You have the option of using your own converter or loading {uri-tilt}[Tilt]-supported templates to customize the generated output or produce additional formats.
114
-
115
- NOTE: Asciidoctor is a drop-in replacement for the original AsciiDoc Python processor (`asciidoc.py`).
116
- The Asciidoctor test suite has {uri-tests}[> 1,600 tests] to ensure compatibility with the AsciiDoc syntax.
117
-
118
- In addition to the classic AsciiDoc syntax, Asciidoctor recognizes additional markup and formatting options, such as font-based icons (e.g., `+icon:fire[]+`) and UI elements (e.g., `+button:[Save]+`).
119
- Asciidoctor also offers a modern, responsive theme based on {uri-foundation}[Foundation] to style the HTML5 output.
120
-
121
- == Requirements
122
-
123
- Asciidoctor works on Linux, OS X (Mac) and Windows and requires one of the following implementations of {uri-ruby}[Ruby]:
124
-
125
- * MRI (Ruby 1.8.7, 1.9.3, 2.0, 2.1, 2.2 & 2.3)
126
- * JRuby (1.7 in Ruby 1.8 and 1.9 modes, 9000)
127
- * Rubinius 2.2.x
128
- * Opal (JavaScript)
129
-
130
- We welcome your help testing Asciidoctor on these and other platforms.
131
- Refer to the <<Contributing>> section to learn how to get involved.
132
-
133
- [CAUTION]
134
- ====
135
- If you're using a non-English Windows environment, you may bump into an `Encoding::UndefinedConversionError` when invoking Asciidoctor.
136
- To solve this issue, we recommend changing the active code page in your console to UTF-8:
137
-
138
- chcp 65001
139
-
140
- Once you make this change, all your Unicode headaches will be behind you.
141
- If you're using an IDE like Eclipse, make sure you set the encoding to UTF-8 there as well.
142
- Asciidoctor works best when you use UTF-8 everywhere.
143
- ====
144
-
145
- == Installation
146
-
147
- Asciidoctor can be installed using (a) the `gem install` command, (b) Bundler or (c) package managers for popular Linux distributions.
148
-
149
- TIP: The benefit of using a Linux package manager to install the gem is that it handles installing Ruby and the RubyGems library if those packages are not already installed on your machine.
150
- The drawback is that the package may not be available immediately after the release of the gem.
151
- If you need the latest version, you can always fallback to using the `gem` command.
152
-
153
- === (a) gem install
154
-
155
- Open a terminal and type (excluding the leading `$`):
156
-
157
- $ gem install asciidoctor
158
-
159
- If you want to install a pre-release version (e.g., a release candidate), use:
160
-
161
- $ gem install asciidoctor --pre
162
-
163
- .Upgrading your installation
164
- [TIP]
165
- ====
166
- If you have an earlier version of Asciidoctor installed, you can update it using:
167
-
168
- $ gem update asciidoctor
169
-
170
- If you install a new version of the gem using `gem install` instead of gem update, you'll have multiple versions installed.
171
- If that's the case, use the following gem command to remove the old versions:
172
-
173
- $ gem cleanup asciidoctor
174
- ====
175
-
176
- === (b) Bundler
177
-
178
- . Create a Gemfile in the root folder of your project (or the current directory)
179
- . Add the `asciidoctor` gem to your Gemfile as follows:
180
- +
181
- [source,subs=attributes+]
182
- ----
183
- source 'https://rubygems.org'
184
- gem 'asciidoctor'
185
- # or specify the version explicitly
186
- # gem 'asciidoctor', '{release-version}'
187
- ----
188
-
189
- . Save the Gemfile
190
- . Open a terminal and install the gem using:
191
-
192
- $ bundle
193
-
194
- To upgrade the gem, specify the new version in the Gemfile and run `bundle` again.
195
- Using `bundle update` is *not* recommended as it will also update other gems, which may not be the desired result.
196
-
197
- === (c) Linux package managers
198
-
199
- ==== DNF (Fedora 21 or greater)
200
-
201
- To install the gem on Fedora 21 or greater using dnf, open a terminal and type:
202
-
203
- $ sudo dnf install -y asciidoctor
204
-
205
- To upgrade the gem, use:
206
-
207
- $ sudo dnf update -y asciidoctor
208
-
209
- TIP: Your system may be configured to automatically update rpm packages, in which case no action is required by you to update the gem.
210
-
211
- ==== apt-get (Debian, Ubuntu, Mint)
212
-
213
- To install the gem on Debian, Ubuntu or Mint, open a terminal and type:
214
-
215
- $ sudo apt-get install -y asciidoctor
216
-
217
- To upgrade the gem, use:
218
-
219
- $ sudo apt-get upgrade -y asciidoctor
220
-
221
- TIP: Your system may be configured to automatically update deb packages, in which case no action is required by you to update the gem.
222
-
223
- The version of Asciidoctor installed by the package manager (apt-get) may not match the latest release of Asciidoctor.
224
- Consult the package repository for your distribution to find out which version is packaged per distribution release.
225
-
226
- * https://packages.debian.org/search?keywords=asciidoctor&searchon=names&exact=1&suite=all&section=all[asciidoctor package by Debian release]
227
- * http://packages.ubuntu.com/search?keywords=asciidoctor&searchon=names&exact=1&suite=all&section=all[asciidoctor package by Ubuntu release]
228
- * https://community.linuxmint.com/software/view/asciidoctor[asciidoctor package by Mint release]
229
-
230
- [CAUTION]
231
- ====
232
- You're advised against using the `gem update` command to update a gem managed by the package manager.
233
- Doing so puts the system into an inconsistent state as the package manager can no longer track the files (which get installed under /usr/local).
234
- Simply put, system gems should only be managed by the package manager.
235
-
236
- If you want to use a version of Asciidoctor that is newer than what is installed by the package manager, you should use http://rvm.io[RVM] to install Ruby in your home directory (i.e., user space).
237
- Then, you can safely use the `gem` command to install or update the Asciidoctor gem.
238
- When using RVM, gems are installed in a location isolated from the system.
239
- ====
240
-
241
- ==== apk (Alpine Linux)
242
-
243
- To install the gem on Alpine Linux, open a terminal and type:
244
-
245
- $ sudo apk add asciidoctor
246
-
247
- To upgrade the gem, use:
248
-
249
- $ sudo apk add -u asciidoctor
250
-
251
- TIP: Your system may be configured to automatically update apk packages, in which case no action is required by you to update the gem.
252
-
253
- === Other installation options
254
-
255
- * {uri-install-docker}[Installing Asciidoctor using Docker]
256
- * {uri-install-osx-doc}[Installing Asciidoctor on Mac OS X]
257
- // at the moment, the following entry is just a reiteration of the information in this README
258
- //* {uri-install-doc}[Installing the Asciidoctor toolchain]
259
-
260
- == Usage
261
-
262
- If the Asciidoctor gem installed successfully, the `asciidoctor` command line interface (CLI) will be available on your PATH.
263
- To verify it's available, run the following in your terminal:
264
-
265
- $ asciidoctor --version
266
-
267
- You should see information about the Asciidoctor version and your Ruby environment printed in the terminal.
268
-
269
- [.output,subs=attributes+]
270
- ....
271
- Asciidoctor {release-version} [http://asciidoctor.org]
272
- Runtime Environment (ruby 2.4.1p111 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
273
- ....
274
-
275
- Asciidoctor also provides an API.
276
- The API is intended for integration with other Ruby software, such as Rails, Sinatra and GitHub, and other languages, such as Java (via {uri-asciidoctorj}[AsciidoctorJ]) and JavaScript (via {uri-asciidoctorjs}[Asciidoctor.js]).
277
-
278
- === Command line interface (CLI)
279
-
280
- The `asciidoctor` command allows you to invoke Asciidoctor from the command line (i.e., a terminal).
281
-
282
- The following command converts the file README.adoc to HTML and saves the result to the file README.html in the same directory.
283
- The name of the generated HTML file is derived from the source file by changing its file extension to `.html`.
284
-
285
- $ asciidoctor README.adoc
286
-
287
- You can control the Asciidoctor processor by adding various flags and switches, which you can learn about using:
288
-
289
- $ asciidoctor --help
290
-
291
- For instance, to write the file to a different directory, use:
292
-
293
- $ asciidoctor -D output README.adoc
294
-
295
- The `asciidoctor` {uri-manpage}[man page] provides a complete reference of the command line interface.
296
-
297
- Refer to the following resources to learn more about how to use the `asciidoctor` command.
298
-
299
- * {uri-render-doc}[How do I convert a document?]
300
- * {uri-themes-doc}[How do I use the Asciidoctor stylesheet factory to produce custom themes?]
301
-
302
- === Ruby API
303
-
304
- To use Asciidoctor in your application, you first need to require the gem:
305
-
306
- [source]
307
- require 'asciidoctor'
308
-
309
- You can then convert an AsciiDoc source file to an HTML file using:
310
-
311
- [source]
312
- Asciidoctor.convert_file 'README.adoc', to_file: true, safe: :safe
313
-
314
- WARNING: When using Asciidoctor via the API, the default safe mode is `:secure`.
315
- In secure mode, several core features are disabled, including the `include` directive.
316
- If you want to enable these features, you'll need to explicitly set the safe mode to `:server` (recommended) or `:safe`.
317
-
318
- You can also convert an AsciiDoc string to embeddable HTML (for inserting in an HTML page) using:
319
-
320
- [source]
321
- ----
322
- content = '_Zen_ in the art of writing http://asciidoctor.org[AsciiDoc].'
323
- Asciidoctor.convert content, safe: :safe
324
- ----
325
-
326
- If you want the full HTML document, enable the `header_footer` option as follows:
327
-
328
- [source]
329
- ----
330
- content = '_Zen_ in the art of writing http://asciidoctor.org[AsciiDoc].'
331
- html = Asciidoctor.convert content, header_footer: true, safe: :safe
332
- ----
333
-
334
- If you need access to the parsed document, you can split the conversion into discrete steps:
335
-
336
- [source]
337
- ----
338
- content = '_Zen_ in the art of writing http://asciidoctor.org[AsciiDoc].'
339
- document = Asciidoctor.load content, header_footer: true, safe: :safe
340
- puts document.doctitle
341
- html = document.convert
342
- ----
343
-
344
- Keep in mind that if you don't like the output Asciidoctor produces, _you can change it!_
345
- Asciidoctor supports custom converters that can handle converting from the parsed document to the generated output.
346
-
347
- One easy way to customize the output piecemeal is by using the template converter.
348
- The template converter allows you to supply a {uri-tilt}[Tilt]-supported template file to handle converting any node in the document.
349
-
350
- However you go about it, you _can_ have 100% control over the output.
351
- For more information about how to use the API or to customize the output, refer to the {uri-user-manual}[user manual].
352
-
353
- == Contributing
354
-
355
- In the spirit of {uri-freesoftware}[free software], _everyone_ is encouraged to help improve this project.
356
- If you discover errors or omissions in the source code, documentation, or website content, please don't hesitate to submit an issue or open a pull request with a fix.
357
- New contributors are always welcome!
358
-
359
- Here are some ways *you* can contribute:
360
-
361
- * by using prerelease (alpha, beta or preview) versions
362
- * by reporting bugs
363
- * by suggesting new features
364
- * by writing or editing documentation
365
- * by writing specifications
366
- * by writing code -- _No patch is too small._
367
- ** fix typos
368
- ** add comments
369
- ** clean up inconsistent whitespace
370
- ** write tests!
371
- * by refactoring code
372
- * by fixing {uri-issues}[issues]
373
- * by reviewing patches
374
-
375
- The {uri-contribute}[Contributing] guide provides information on how to create, style, and submit issues, feature requests, code, and documentation to the Asciidoctor Project.
376
-
377
- == Getting Help
378
-
379
- The Asciidoctor project is developed to help you easily write and publish your content.
380
- But we can't do it without your feedback!
381
- We encourage you to ask questions and discuss any aspects of the project on the discussion list, on Twitter or in the chat room.
382
-
383
- Discussion list (Nabble):: {uri-discuss}
384
- Twitter:: #asciidoctor hashtag or @asciidoctor mention
385
- Chat (Gitter):: image:https://badges.gitter.im/Join%20In.svg[Gitter, link=https://gitter.im/asciidoctor/asciidoctor]
386
- ////
387
- Chat (IRC):: {uri-irc}[#asciidoctor] on FreeNode IRC
388
- ////
389
-
390
- ifdef::env-github[]
391
- Further information and documentation about Asciidoctor can be found on the project's website.
392
-
393
- {uri-project}/[Home] | {uri-news}[News] | {uri-docs}[Docs]
394
- endif::[]
395
-
396
- The Asciidoctor organization on GitHub hosts the project's source code, issue tracker, and sub-projects.
397
-
398
- Source repository (git):: {uri-repo}
399
- Issue tracker:: {uri-issues}
400
- Asciidoctor organization on GitHub:: {uri-org}
401
-
402
- == Copyright and Licensing
403
-
404
- Copyright (C) 2012-2017 Dan Allen, Ryan Waldron and the Asciidoctor Project.
405
- Free use of this software is granted under the terms of the MIT License.
406
-
407
- See the {uri-license}[LICENSE] file for details.
408
-
409
- == Authors
410
-
411
- *Asciidoctor* is led by https://github.com/mojavelinux[Dan Allen] and https://github.com/graphitefriction[Sarah White] and has received contributions from {uri-contributors}[many other individuals] in Asciidoctor's awesome community.
412
- The project was initiated in 2012 by https://github.com/erebor[Ryan Waldron] and based on {uri-prototype}[a prototype] written by https://github.com/nickh[Nick Hengeveld].
413
-
414
- *AsciiDoc* was started by Stuart Rackham and has received contributions from many other individuals in the AsciiDoc community.
415
-
416
- == Changelog
417
-
418
- ifeval::[{safe-mode-level} < 20]
419
- include::CHANGELOG.adoc[tag=compact,leveloffset=+1]
420
- endif::[]
421
-
422
- Refer to the {uri-changelog}[CHANGELOG] for a complete list of changes in older releases.