asciidoctor 1.5.7.1 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +95 -5
- data/Gemfile +23 -13
- data/README-de.adoc +482 -0
- data/README-fr.adoc +128 -119
- data/README-jp.adoc +2 -3
- data/README-zh_CN.adoc +2 -3
- data/README.adoc +131 -106
- data/asciidoctor.gemspec +9 -7
- data/data/locale/attributes-ar.adoc +1 -1
- data/data/locale/attributes-bg.adoc +1 -1
- data/data/locale/attributes-ca.adoc +1 -1
- data/data/locale/attributes-cs.adoc +1 -1
- data/data/locale/attributes-da.adoc +1 -1
- data/data/locale/attributes-de.adoc +1 -1
- data/data/locale/attributes-en.adoc +1 -1
- data/data/locale/attributes-es.adoc +1 -1
- data/data/locale/attributes-fa.adoc +1 -1
- data/data/locale/attributes-fi.adoc +1 -1
- data/data/locale/attributes-fr.adoc +1 -1
- data/data/locale/attributes-hu.adoc +1 -1
- data/data/locale/attributes-id.adoc +1 -1
- data/data/locale/attributes-it.adoc +1 -1
- data/data/locale/attributes-ja.adoc +1 -1
- data/data/locale/attributes-kr.adoc +1 -1
- data/data/locale/attributes-nb.adoc +1 -1
- data/data/locale/attributes-nl.adoc +1 -1
- data/data/locale/attributes-nn.adoc +1 -1
- data/data/locale/attributes-pl.adoc +1 -1
- data/data/locale/attributes-pt.adoc +1 -1
- data/data/locale/attributes-pt_BR.adoc +1 -1
- data/data/locale/attributes-ro.adoc +1 -1
- data/data/locale/attributes-ru.adoc +1 -1
- data/data/locale/attributes-sr.adoc +5 -4
- data/data/locale/attributes-sr_Latn.adoc +5 -4
- data/data/locale/attributes-sv.adoc +23 -0
- data/data/locale/attributes-tr.adoc +1 -1
- data/data/locale/attributes-uk.adoc +1 -1
- data/data/locale/attributes-zh_CN.adoc +1 -1
- data/data/locale/attributes-zh_TW.adoc +1 -1
- data/data/stylesheets/asciidoctor-default.css +23 -23
- data/lib/asciidoctor.rb +110 -104
- data/lib/asciidoctor/abstract_block.rb +55 -32
- data/lib/asciidoctor/abstract_node.rb +32 -17
- data/lib/asciidoctor/attribute_list.rb +8 -7
- data/lib/asciidoctor/block.rb +5 -7
- data/lib/asciidoctor/cli/options.rb +5 -9
- data/lib/asciidoctor/converter.rb +2 -2
- data/lib/asciidoctor/converter/docbook45.rb +7 -20
- data/lib/asciidoctor/converter/docbook5.rb +36 -37
- data/lib/asciidoctor/converter/factory.rb +10 -8
- data/lib/asciidoctor/converter/html5.rb +90 -65
- data/lib/asciidoctor/converter/manpage.rb +72 -62
- data/lib/asciidoctor/converter/template.rb +8 -6
- data/lib/asciidoctor/core_ext/1.8.7/concurrent/hash.rb +5 -0
- data/lib/asciidoctor/document.rb +62 -10
- data/lib/asciidoctor/extensions.rb +74 -16
- data/lib/asciidoctor/helpers.rb +11 -14
- data/lib/asciidoctor/list.rb +2 -2
- data/lib/asciidoctor/parser.rb +223 -195
- data/lib/asciidoctor/path_resolver.rb +15 -7
- data/lib/asciidoctor/reader.rb +65 -36
- data/lib/asciidoctor/section.rb +6 -4
- data/lib/asciidoctor/substitutors.rb +170 -149
- data/lib/asciidoctor/table.rb +16 -8
- data/lib/asciidoctor/version.rb +1 -1
- data/man/asciidoctor.1 +6 -5
- data/man/asciidoctor.adoc +3 -2
- data/test/api_test.rb +236 -0
- data/test/attribute_list_test.rb +242 -0
- data/test/attributes_test.rb +65 -52
- data/test/blocks_test.rb +408 -260
- data/test/converter_test.rb +7 -7
- data/test/document_test.rb +60 -54
- data/test/extensions_test.rb +218 -32
- data/test/fixtures/doctime-localtime.adoc +2 -0
- data/test/fixtures/section-a.adoc +4 -0
- data/test/fixtures/subs.adoc +0 -1
- data/test/invoker_test.rb +56 -18
- data/test/links_test.rb +105 -81
- data/test/lists_test.rb +636 -265
- data/test/logger_test.rb +1 -1
- data/test/manpage_test.rb +140 -3
- data/test/paragraphs_test.rb +42 -42
- data/test/parser_test.rb +63 -183
- data/test/paths_test.rb +21 -4
- data/test/preamble_test.rb +9 -9
- data/test/reader_test.rb +78 -28
- data/test/sections_test.rb +273 -151
- data/test/substitutions_test.rb +53 -19
- data/test/tables_test.rb +286 -163
- data/test/test_helper.rb +4 -3
- data/test/text_test.rb +65 -65
- metadata +16 -21
data/README-fr.adoc
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
= Asciidoctor
|
2
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.
|
4
|
-
v1.5.7, 2018-05-02
|
3
|
+
v1.5.8, 2018-10-28
|
5
4
|
// settings:
|
6
5
|
:idprefix:
|
7
6
|
:idseparator: -
|
@@ -18,7 +17,7 @@ ifdef::env-github[]
|
|
18
17
|
:warning-caption: :warning:
|
19
18
|
endif::[]
|
20
19
|
// Variables:
|
21
|
-
:release-version: 1.5.
|
20
|
+
:release-version: 1.5.8
|
22
21
|
// URIs:
|
23
22
|
:uri-org: https://github.com/asciidoctor
|
24
23
|
:uri-repo: {uri-org}/asciidoctor
|
@@ -60,17 +59,19 @@ endif::[]
|
|
60
59
|
// images:
|
61
60
|
:image-uri-screenshot: https://raw.githubusercontent.com/asciidoctor/asciidoctor/master/screenshot.png
|
62
61
|
|
63
|
-
{uri-project}/[Asciidoctor] est un processeur de texte
|
64
|
-
Asciidoctor est écrit en Ruby
|
65
|
-
|
66
|
-
Asciidoctor
|
62
|
+
{uri-project}/[Asciidoctor] est un processeur de texte et une chaîne de publication _rapide_ et {uri-license}[open source] permettant de convertir du contenu {uri-what-is-asciidoc}[AsciiDoc] en HTML5, DocBook, PDF et d'autres formats.
|
63
|
+
Asciidoctor est écrit en Ruby et fonctionne sur les principaux systèmes d'exploitation.
|
64
|
+
Pour simplifier l'installation, Asciidoctor est publié au format gem sur {uri-rubygem}[RubyGems.org], et il est également disponible en tant que paquet système sur les principales distributions Linux ainsi que sur macOS.
|
65
|
+
Asciidoctor fonctionne aussi sur la JVM avec {uri-asciidoctorj}[AsciidoctorJ] et dans n'importe quel environnement JavaScript avec {uri-asciidoctorjs}[Asciidoctor.js].
|
66
|
+
Le projet Asciidoctor est {uri-repo}[hébergé sur GitHub].
|
67
67
|
|
68
68
|
ifndef::env-site[]
|
69
|
-
Ce document est traduit dans les langues suivantes :
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
Ce document est traduit dans les langues suivantes : +
|
70
|
+
{uri-rel-file-base}README.adoc[Anglais]
|
71
|
+
|
|
72
|
+
{uri-rel-file-base}README-zh_CN.adoc[Chinois]
|
73
|
+
|
|
74
|
+
{uri-rel-file-base}README-jp.adoc[Japonais]
|
74
75
|
endif::[]
|
75
76
|
|
76
77
|
.Documentation clé
|
@@ -80,17 +81,6 @@ endif::[]
|
|
80
81
|
* {uri-docs}/asciidoc-syntax-quick-reference[Syntaxe de Référence AsciiDoc]
|
81
82
|
* {uri-docs}/user-manual[Manuel Utilisateur Asciidoctor]
|
82
83
|
|
83
|
-
.Asciidoctor est disponible partout où Ruby est disponible
|
84
|
-
****
|
85
|
-
Vous pouvez exécuter Asciidoctor dans la JVM en utilisant JRuby.
|
86
|
-
Pour invoquer l'API Asciidoctor directement depuis Java ou d'autres langages de la JVM, utilisez {uri-asciidoctorj}[AsciidoctorJ].
|
87
|
-
Des plugins basés sur AsciidoctorJ permettent d'intégrer le processeur Asciidoctor avec Apache Maven, Gradle ou Javadoc.
|
88
|
-
|
89
|
-
Asciidoctor s'exécute également au sein de JavaScript.
|
90
|
-
Nous utilisons http://opalrb.org[Opal] pour transcrire le code source Ruby en JavaScript afin de produire {uri-asciidoctorjs}[Asciidoctor.js], une version pleinement fonctionnelle d'Asciidoctor qui s'intègre dans tout environnement JavaScript, comme un navigateur web ou Node.js.
|
91
|
-
Asciidoctor.js est utilisé pour faire fonctionner les extensions AsciiDoc Preview pour Chrome, Atom, Brackets et autres outils web.
|
92
|
-
****
|
93
|
-
|
94
84
|
ifdef::status[]
|
95
85
|
.*Santé du projet*
|
96
86
|
image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI), link=https://travis-ci.org/asciidoctor/asciidoctor]
|
@@ -100,6 +90,20 @@ image:https://ci.appveyor.com/api/projects/status/ifplu67oxvgn6ceq/branch/master
|
|
100
90
|
image:https://inch-ci.org/github/asciidoctor/asciidoctor.svg?branch=master[Inline docs, link="https://inch-ci.org/github/asciidoctor/asciidoctor"]
|
101
91
|
endif::[]
|
102
92
|
|
93
|
+
== Sponsors
|
94
|
+
|
95
|
+
Nous souhaitons exprimer toute notre reconnaissance à nos généreux sponsors, sans qui Asciidoctor ne pourrait pas exister.
|
96
|
+
Merci à vous pour votre engagement dans l'amélioration de la documentation technique !
|
97
|
+
|
98
|
+
image:https://www.okta.com/sites/all/themes/Okta/images/blog/Logos/Okta_Logo_BrightBlue_Medium.png[Okta,280,link=https://developer.okta.com/signup?utm_source=asciidoctor&utm_medium=logo&utm_campaign=sponsor,title="Add User Auth to Your Apps in Minutes with Okta"]
|
99
|
+
|
100
|
+
image:https://secure.gravatar.com/avatar/823717a797dbd78ceff7b26aa397f383.png?size=200[OpenDevise,100,link=https://opendevise.com,title="Let the Creators of Asciidoctor and Antora Help You to Accelerate Your Docs"]
|
101
|
+
|
102
|
+
Asciidoctor est financé majoritairement par nos *Change Makers*, https://developer.okta.com/signup?utm_source=asciidoctor&utm_medium=text-link&utm_campaign=sponsor[Okta] et https://opendevise.com[OpenDevise], ainsi que par nos *Strategy Sponsors*, https://www.khronos.org/[Khronos Group] et Linda Roberts.
|
103
|
+
Un apport financier supplémentaire est assuré par https://asciidoctor.org/supporters[la communauté].
|
104
|
+
|
105
|
+
Vous pouvez aider ce projet en devant un sponsor sur https://opencollective.com/asciidoctor[OpenCollective].
|
106
|
+
|
103
107
|
== En un mot
|
104
108
|
|
105
109
|
Asciidoctor lit du contenu écrit en texte brut, comme présenté dans la partie gauche de l'image ci-dessous, et le convertit en HTML5, comme présenté dans la partie droite.
|
@@ -109,28 +113,35 @@ image::{image-uri-screenshot}[Prévisualisation d'une source AsciiDoc et le rend
|
|
109
113
|
|
110
114
|
== Le traitement d'AsciiDoc
|
111
115
|
|
112
|
-
Asciidoctor lit et analyse la syntaxe du texte écrit en AsciiDoc afin de créer une représentation, sous forme d'arbre, à partir de laquelle des templates sont appliqués pour produire de l'HTML5, du DocBook 5 (
|
116
|
+
Asciidoctor lit et analyse la syntaxe du texte écrit en AsciiDoc afin de créer une représentation, sous forme d'arbre, à partir de laquelle des templates sont appliqués pour produire de l'HTML5, du DocBook 5 et des pages de man(uel).
|
113
117
|
|
114
118
|
Vous avez la possibilité d'écrire votre propre convertisseur ou de fournir des templates supportant {uri-tilt}[Tilt] pour personnaliser le résultat généré ou pour produire des formats alternatifs.
|
115
119
|
|
116
|
-
|
117
|
-
La suite de tests Asciidoctor possède {uri-tests}[
|
120
|
+
Asciidoctor remplace le processeur AsciiDoc original écrit en Python (`asciidoc.py`).
|
121
|
+
La suite de tests Asciidoctor possède {uri-tests}[plus de 2,000 tests] afin de garantir la compatibilité avec la syntaxe AsciiDoc.
|
118
122
|
|
119
123
|
En plus de la syntaxe AsciiDoc standard, Asciidoctor reconnaît des balises additionnelles ainsi que des options de formatage, comme les polices d'icônes (par exemple `+icon:fire[]+`) et des éléments d'interface (par exemple `+button:[Enregistrer]+`).
|
120
124
|
Asciidoctor offre aussi un thème moderne et « responsive » basé sur {uri-foundation}[Foundation] pour styliser le document HTML5 généré.
|
121
125
|
|
126
|
+
== Asciidoctor est disponible partout où Ruby est disponible
|
127
|
+
|
128
|
+
Vous pouvez exécuter Asciidoctor dans la JVM en utilisant JRuby.
|
129
|
+
Pour invoquer l'API Asciidoctor directement depuis Java ou d'autres langages de la JVM, utilisez {uri-asciidoctorj}[AsciidoctorJ].
|
130
|
+
Des plugins basés sur AsciidoctorJ permettent d'intégrer le processeur Asciidoctor avec Apache Maven, Gradle ou Javadoc.
|
131
|
+
|
132
|
+
Asciidoctor s'exécute également au sein de JavaScript.
|
133
|
+
Nous utilisons https://opalrb.com[Opal] pour transcrire le code source Ruby en JavaScript afin de produire {uri-asciidoctorjs}[Asciidoctor.js], une version pleinement fonctionnelle d’Asciidoctor qui s’intègre dans tout environnement JavaScript, comme un navigateur web ou Node.js.
|
134
|
+
Asciidoctor.js est utilisé pour faire fonctionner les extensions AsciiDoc Preview pour Chrome, Atom, Brackets et autres outils web.
|
135
|
+
|
122
136
|
== Prérequis
|
123
137
|
|
124
138
|
Asciidoctor fonctionne sur Linux, macOS et Windows et requiert une des implémentations suivantes de {uri-ruby}[Ruby] :
|
125
139
|
|
126
140
|
* Ruby (MRI/CRuby 1.8.7 - 2.5)
|
127
|
-
* JRuby (1.7
|
141
|
+
* JRuby (1.7 en mode Ruby 1.8 et 1.9, 9000)
|
128
142
|
* Rubinius 2.2.x
|
129
143
|
* Opal (JavaScript)
|
130
144
|
|
131
|
-
Votre aide est appréciée pour tester Asciidoctor sur l'une de ces plateformes.
|
132
|
-
Référez-vous au paragraphe <<Contributions>> si vous souhaitez vous impliquer dans ce projet.
|
133
|
-
|
134
145
|
[CAUTION]
|
135
146
|
====
|
136
147
|
Si vous utilisez un environnement Windows dans une autre langue que l'anglais, vous pourriez tomber sur l'erreur `Encoding::UndefinedConversionError` lors du lancement d'Asciidoctor.
|
@@ -145,15 +156,63 @@ Asciidoctor fonctionne mieux lorsque vous utilisez UTF-8 partout.
|
|
145
156
|
|
146
157
|
== Installation
|
147
158
|
|
148
|
-
Asciidoctor peut être installé en utilisant
|
159
|
+
Asciidoctor peut être installé en utilisant (a) un gestionnaire de paquets Linux, (b) Homebrew pour macOS, (c) la commande `gem install` (recommandé pour les utilisateurs Windows), (d) l'image officielle Docker, ou (e) Bundler.
|
160
|
+
|
161
|
+
L'avantage d'utiliser le gestionnaire de paquets pour installer la gemme est que l'installation englobe celle des librairies Ruby et RubyGems si elles ne sont pas déjà installées.
|
162
|
+
|
163
|
+
=== (a) Gestionnaires de paquets Linux
|
164
|
+
|
165
|
+
La version installée par votre gestionnaire de paquets peut ne pas correspondre à la dernière version d'Asciidoctor.
|
166
|
+
Consulter le dépôt de votre distribution Linux pour connaitre la dernière version disponible d'Asciidoctor en fonction de la version de votre distribution.
|
167
|
+
|
168
|
+
* https://pkgs.alpinelinux.org/packages?name=asciidoctor[Alpine Linux (asciidoctor)]
|
169
|
+
* https://packages.debian.org/sid/asciidoctor[Debian (asciidoctor)]
|
170
|
+
* https://apps.fedoraproject.org/packages/rubygem-asciidoctor[Fedora (asciidoctor)]
|
171
|
+
* https://software.opensuse.org/package/rubygem-asciidoctor[OpenSUSE (rubygem-asciidoctor)]
|
172
|
+
* https://packages.ubuntu.com/search?keywords=asciidoctor[Ubuntu (asciidoctor)]
|
173
|
+
|
174
|
+
Si vous souhaitez installer une version plus récente d'Asciidoctor que celle proposée par votre gestionnaire de paquets, suivre <<gem-install,la procédure d'installation gem>>.
|
175
|
+
|
176
|
+
==== apk (Alpine Linux)
|
177
|
+
|
178
|
+
Pour installer le paquet sur Alpine Linux, ouvrez un terminal et tapez :
|
179
|
+
|
180
|
+
$ sudo apk add asciidoctor
|
181
|
+
|
182
|
+
==== APT
|
183
|
+
|
184
|
+
Sur Debian et les distributions dérivées de Debian, comme Ubuntu, utilisez APT pour installer Asciidoctor.
|
185
|
+
Pour installer le paquet, ouvrez un terminal et tapez :
|
186
|
+
|
187
|
+
$ sudo apt-get install -y asciidoctor
|
188
|
+
|
189
|
+
==== DNF
|
190
|
+
|
191
|
+
Sur les distributions Linux qui utilisent des RPM, comme Fedora, CentOS, et RHEL, utilisez le gestionnaire de paquets DNF pour installer Asciidoctor.
|
192
|
+
Pour installer le paquet, ouvrez un terminal et tapez :
|
193
|
+
|
194
|
+
$ sudo dnf install -y asciidoctor
|
195
|
+
|
196
|
+
=== (b) Homebrew (macOS)
|
197
|
+
|
198
|
+
Vous pouvez utiliser Homebrew, le gestionnaire de paquets sur macOS, pour installer Asciidoctor.
|
199
|
+
Si vous n'avez pas encore installé Homebrew, suivez les instructions sur https://brew.sh/[brew.sh].
|
200
|
+
|
201
|
+
Une fois Homebrew installé, vous pouvez installer Asciidoctor.
|
202
|
+
Ouvrez un terminal et tapez :
|
203
|
+
|
204
|
+
$ brew install asciidoctor
|
149
205
|
|
150
|
-
|
151
|
-
L'inconvénient est que le paquet n'est pas forcément mis à jour immédiatement après la mise à disposition de la gemme.
|
152
|
-
Si vous avez besoin de la dernière version, vous devez passer par la commande `gem`.
|
206
|
+
Homebrew installe la gemme `asciidoctor` dans un répertoire spécifique qui est indépendant des gemmes système.
|
153
207
|
|
154
|
-
|
208
|
+
[#gem-install]
|
209
|
+
=== (c) gem install
|
155
210
|
|
156
|
-
|
211
|
+
Avant d'installer Asciidoctor en utilisant `gem install`, il est recommandé d'utiliser https://rvm.io[RVM] pour installer Ruby dans votre « home » (c'est-à-dire, votre espace utilisateur).
|
212
|
+
Ensuite, vous pouvez utiliser la commande `gem` pour installer ou mettre à jour la gemme Asciidoctor.
|
213
|
+
Quand vous utilisez RVM, les gemmes sont installées dans un répertoire isolé du système.
|
214
|
+
|
215
|
+
Ouvrez un terminal et tapez :
|
157
216
|
|
158
217
|
$ gem install asciidoctor
|
159
218
|
|
@@ -161,20 +220,11 @@ Si vous souhaitez installer une version pre-release (c'est-à-dire, une « rele
|
|
161
220
|
|
162
221
|
$ gem install asciidoctor --pre
|
163
222
|
|
164
|
-
|
165
|
-
[TIP]
|
166
|
-
====
|
167
|
-
Si vous avez une précédente version d'Asciidoctor installée, vous pouvez la mettre à jour en utilisant :
|
223
|
+
=== (d) Docker
|
168
224
|
|
169
|
-
|
225
|
+
Lire {uri-install-docker}[Installer Asciidoctor en utilisant Docker].
|
170
226
|
|
171
|
-
|
172
|
-
Si c'est le cas, utilisez la commande gem suivante pour supprimer la vieille version :
|
173
|
-
|
174
|
-
$ gem cleanup asciidoctor
|
175
|
-
====
|
176
|
-
|
177
|
-
=== (b) Bundler
|
227
|
+
=== (e) Bundler
|
178
228
|
|
179
229
|
. Créez un fichier Gemfile à la racine de votre projet (ou du répertoire courant)
|
180
230
|
. Ajoutez la gemme `asciidoctor` dans votre fichier Gemfile comme ci-dessous :
|
@@ -195,85 +245,46 @@ gem 'asciidoctor'
|
|
195
245
|
Pour mettre à jour la gemme, spécifiez la nouvelle version dans le fichier Gemfile et exécutez `bundle` à nouveau.
|
196
246
|
Utiliser `bundle update` *n*'est *pas* recommandé car les autres gemmes seront également mises à jour, ce qui n'est pas forcément le résultat voulu.
|
197
247
|
|
198
|
-
|
199
|
-
|
200
|
-
==== DNF (Fedora 21 ou supérieure)
|
201
|
-
|
202
|
-
Pour installer la gemme sur Fedora 21 ou supérieure en utilisant dnf, ouvrez un terminal et tapez :
|
248
|
+
== Mise à jour
|
203
249
|
|
204
|
-
|
205
|
-
|
206
|
-
Pour mettre à jour la gemme, utilisez :
|
207
|
-
|
208
|
-
$ sudo dnf update -y asciidoctor
|
250
|
+
Si vous avez installé Asciidoctor en utilisant votre gestionnaire de paquets, votre système d'exploitation est surement configuré pour mettre à jour automatiquement les paquets, si tel est le cas vous n'avez pas besoin de mettre à jour manuellement Asciidoctor.
|
209
251
|
|
210
|
-
|
252
|
+
=== apk (Alpine Linux)
|
211
253
|
|
212
|
-
|
254
|
+
Pour mettre à jour Asciidoctor, tapez :
|
213
255
|
|
214
|
-
|
256
|
+
$ sudo apk add -u asciidoctor
|
215
257
|
|
216
|
-
|
258
|
+
=== APT
|
217
259
|
|
218
|
-
Pour mettre à jour
|
260
|
+
Pour mettre à jour Asciidoctor, tapez :
|
219
261
|
|
220
262
|
$ sudo apt-get upgrade -y asciidoctor
|
221
263
|
|
222
|
-
|
223
|
-
|
224
|
-
La version d'Asciidoctor installé par le gestionnaire de paquets (apt-get) peut ne pas correspondre à la dernière version d'Asciidoctor.
|
225
|
-
Consultez le dépôt de paquets de votre distribution pour trouver quelle version est disponible par version de distribution.
|
226
|
-
|
227
|
-
* https://packages.debian.org/search?keywords=asciidoctor&searchon=names&exact=1&suite=all§ion=all[Paquet asciidoctor par version de Debian]
|
228
|
-
* http://packages.ubuntu.com/search?keywords=asciidoctor&searchon=names&exact=1&suite=all§ion=all[Paquet asciidoctor par version d'Ubuntu]
|
229
|
-
* https://community.linuxmint.com/software/view/asciidoctor[Paquet asciidoctor par version de Mint]
|
230
|
-
|
231
|
-
[CAUTION]
|
232
|
-
====
|
233
|
-
Il est déconseillé d'utiliser la commande `gem update` pour mettre à jour la gemme gérée par le gestionnaire de paquets.
|
234
|
-
Le faire mettrait la système dans un état incohérent car le gestionnaire de paquets ne pourrait plus gérer les fichiers (qui sont installés dans /usr/local).
|
235
|
-
En résumé, les gemmes du système doivent être gérées seulement par le gestionnaire de paquets.
|
236
|
-
|
237
|
-
Si vous souhaitez utiliser une version d'Asciidoctor qui est plus récente que celle installée par votre gestionnaire de paquets, vous devriez utiliser http://rvm.io[RVM] pour installer Ruby dans votre répertoire personnel (dans votre espace utilisateur).
|
238
|
-
Vous pouvez alors utiliser la commande `gem` pour installer ou mettre à jour la gemme Asciidoctor.
|
239
|
-
En utilisant RVM, les gemmes sont installées dans un emplacement isolé du système.
|
240
|
-
====
|
241
|
-
|
242
|
-
==== apk (Alpine Linux)
|
243
|
-
|
244
|
-
Pour installer la gemme sur Alpine Linux, ouvrez un terminal et tapez :
|
245
|
-
|
246
|
-
$ sudo apk add asciidoctor
|
247
|
-
|
248
|
-
Pour mettre à jour la gemme, utilisez :
|
249
|
-
|
250
|
-
$ sudo apk add -u asciidoctor
|
251
|
-
|
252
|
-
TIP: Votre système peut être configuré pour mettre à jour automatiquement les paquets apk, auquel cas aucune action de votre part ne sera nécessaire pour mettre à jour la gemme.
|
264
|
+
=== DNF
|
253
265
|
|
254
|
-
|
266
|
+
Pour mettre à jour Asciidoctor, tapez :
|
255
267
|
|
256
|
-
|
257
|
-
Si vous n'avez pas encore installé Homebrew, suivez les instructions sur https://brew.sh/[brew.sh].
|
258
|
-
|
259
|
-
Une fois Homebrew installé, vous pouvez installer la gemme `asciidoctor` avec le paquet http://brewformulas.org/Asciidoctor[asciidoctor].
|
260
|
-
Ouvrez un terminal et tapez :
|
268
|
+
$ sudo dnf update -y asciidoctor
|
261
269
|
|
262
|
-
|
270
|
+
=== Homebrew (macOS)
|
263
271
|
|
264
|
-
Pour mettre à jour
|
272
|
+
Pour mettre à jour Asciidoctor, tapez :
|
265
273
|
|
266
274
|
$ brew update
|
267
275
|
$ brew upgrade asciidoctor
|
268
276
|
|
269
|
-
|
277
|
+
=== gem install
|
270
278
|
|
271
|
-
|
279
|
+
Si vous avez précédemment installé Asciidoctor en utilisant la commande `gem`, vous devez manuellement mettre à jour Asciidoctor quand une nouvelle version est publiée.
|
280
|
+
Vous pouvez mettre à jour Asciidoctor en tappant :
|
272
281
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
282
|
+
$ gem install asciidoctor
|
283
|
+
|
284
|
+
Quand vous installez une nouvelle version en utilisant `gem install`, vous vous retrouvez avec plusieurs versions installées.
|
285
|
+
Utilisez la commande ci-dessous pour supprimer les anciennes versions :
|
286
|
+
|
287
|
+
$ gem cleanup asciidoctor
|
277
288
|
|
278
289
|
== Utilisation
|
279
290
|
|
@@ -370,9 +381,8 @@ Pour plus d'informations sur comment utiliser l'API ou personnaliser le contenu
|
|
370
381
|
|
371
382
|
== Contributions
|
372
383
|
|
373
|
-
Dans l'esprit du {uri-freesoftware}[logiciel libre], _tout le monde_ est encouragé à aider en vue d'améliorer le projet.
|
374
|
-
Si vous découvrez des erreurs ou des oublis dans le code source, la documentation, ou le contenu du site web, s'il vous plaît n'hésitez pas à ouvrir un ticket ou une « pull request » avec un correctif.
|
375
384
|
Les contributeurs et contributrices sont toujours les bienvenus !
|
385
|
+
Si vous découvrez des erreurs ou des oublis dans le code source, la documentation, ou le contenu du site web, s'il vous plaît n'hésitez pas à ouvrir un ticket ou une « pull request » avec un correctif.
|
376
386
|
|
377
387
|
Voici quelques façons de contribuer :
|
378
388
|
|
@@ -380,8 +390,7 @@ Voici quelques façons de contribuer :
|
|
380
390
|
* en rapportant des anomalies,
|
381
391
|
* en suggérant de nouvelles fonctionnalités,
|
382
392
|
* en écrivant ou éditant la documentation,
|
383
|
-
* en écrivant des
|
384
|
-
* en écrivant du code -- _Aucun patch n'est trop petit_
|
393
|
+
* en écrivant du code avec des tests -- _Aucun patch n'est trop petit_
|
385
394
|
** corriger une coquille,
|
386
395
|
** ajouter des commentaires,
|
387
396
|
** nettoyer des espaces inutiles,
|
@@ -394,13 +403,13 @@ Le guide du {uri-contribute}[parfait Contributeur] fournit des informations sur
|
|
394
403
|
|
395
404
|
== Être aidé
|
396
405
|
|
397
|
-
|
398
|
-
Mais nous ne pouvons pas le faire sans
|
399
|
-
Nous vous encourageons à poser vos questions et discuter de n'importe quels aspects du projet sur la liste de discussion, Twitter ou dans le salon de discussion.
|
406
|
+
Asciidoctor est développé dans le but de vous aider à écrire et publier du contenu.
|
407
|
+
Mais nous ne pouvons pas le faire sans vos avis !
|
408
|
+
Nous vous encourageons à poser vos questions et à discuter de n'importe quels aspects du projet sur la liste de discussion, Twitter ou dans le salon de discussion.
|
400
409
|
|
401
|
-
|
410
|
+
Chat (Gitter):: image:https://badges.gitter.im/Join%20In.svg[Gitter, link=https://gitter.im/asciidoctor/asciidoctor]
|
411
|
+
Forum (Nabble):: {uri-discuss}
|
402
412
|
Twitter:: hashtag https://twitter.com/search?f=tweets&q=%23asciidoctor[#asciidoctor] ou la mention https://twitter.com/asciidoctor[@asciidoctor]
|
403
|
-
Gitter (Chat):: image:https://badges.gitter.im/Join%20In.svg[Gitter, link=https://gitter.im/asciidoctor/asciidoctor]
|
404
413
|
////
|
405
414
|
IRC (Chat):: {uri-irc}[#asciidoctor] sur FreeNode IRC
|
406
415
|
////
|
@@ -417,9 +426,9 @@ Dépôt des sources (git):: {uri-repo}
|
|
417
426
|
Gestionnaire de tickets:: {uri-issues}
|
418
427
|
L'organisation Asciidoctor sur GitHub:: {uri-org}
|
419
428
|
|
420
|
-
==
|
429
|
+
== Licence
|
421
430
|
|
422
|
-
Copyright (C) 2012-2018 Dan Allen,
|
431
|
+
Copyright (C) 2012-2018 Dan Allen, Sarah White et les contributeurs individuels d'Asciidoctor.
|
423
432
|
Une utilisation libre de ce logiciel est autorisée sous les termes de la licence MIT.
|
424
433
|
|
425
434
|
Consultez le fichier {uri-license}[LICENSE] pour plus de détails.
|
data/README-jp.adoc
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
= Asciidoctor
|
2
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.
|
4
|
-
v1.5.7, 2018-05-02
|
3
|
+
v1.5.8, 2018-10-28
|
5
4
|
// settings:
|
6
5
|
:page-layout: base
|
7
6
|
:idprefix:
|
@@ -19,7 +18,7 @@ ifdef::env-github[]
|
|
19
18
|
:warning-caption: :warning:
|
20
19
|
endif::[]
|
21
20
|
// Variables:
|
22
|
-
:release-version: 1.5.
|
21
|
+
:release-version: 1.5.8
|
23
22
|
// URIs:
|
24
23
|
:uri-org: https://github.com/asciidoctor
|
25
24
|
:uri-repo: {uri-org}/asciidoctor
|
data/README-zh_CN.adoc
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
= Asciidoctor
|
2
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.
|
4
|
-
v1.5.7, 2018-05-02
|
3
|
+
v1.5.8, 2018-10-28
|
5
4
|
// settings:
|
6
5
|
:page-layout: base
|
7
6
|
:idprefix:
|
@@ -19,7 +18,7 @@ ifdef::env-github[]
|
|
19
18
|
:warning-caption: :warning:
|
20
19
|
endif::[]
|
21
20
|
// Variables:
|
22
|
-
:release-version: 1.5.
|
21
|
+
:release-version: 1.5.8
|
23
22
|
// URIs:
|
24
23
|
:uri-org: https://github.com/asciidoctor
|
25
24
|
:uri-repo: {uri-org}/asciidoctor
|
data/README.adoc
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
= Asciidoctor
|
2
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.
|
4
|
-
v1.5.7, 2018-05-02
|
3
|
+
v1.5.8, 2018-10-28
|
5
4
|
// settings:
|
6
5
|
:idprefix:
|
7
6
|
:idseparator: -
|
@@ -18,12 +17,15 @@ ifdef::env-github[]
|
|
18
17
|
:warning-caption: :warning:
|
19
18
|
endif::[]
|
20
19
|
// Variables:
|
21
|
-
:release-version: 1.5.
|
20
|
+
:release-version: 1.5.8
|
22
21
|
// URIs:
|
23
22
|
:uri-org: https://github.com/asciidoctor
|
24
23
|
:uri-repo: {uri-org}/asciidoctor
|
25
24
|
:uri-asciidoctorj: {uri-org}/asciidoctorj
|
26
25
|
:uri-asciidoctorjs: {uri-org}/asciidoctor.js
|
26
|
+
:uri-gradle-plugin: {uri-org}/asciidoctor-gradle-plugin
|
27
|
+
:uri-maven-plugin: {uri-org}/asciidoctor-maven-plugin
|
28
|
+
:uri-asciidoclet: {uri-org}/asciidoclet
|
27
29
|
:uri-project: https://asciidoctor.org
|
28
30
|
ifdef::env-site[:uri-project: link:]
|
29
31
|
:uri-docs: {uri-project}/docs
|
@@ -55,20 +57,24 @@ endif::[]
|
|
55
57
|
:uri-prototype: {uri-gitscm-repo}/commits/master/lib/asciidoc.rb
|
56
58
|
:uri-freesoftware: https://www.gnu.org/philosophy/free-sw.html
|
57
59
|
:uri-foundation: https://foundation.zurb.com
|
60
|
+
:uri-opal: https://opalrb.com
|
58
61
|
:uri-tilt: https://github.com/rtomayko/tilt
|
59
62
|
:uri-ruby: https://www.ruby-lang.org
|
60
63
|
// images:
|
61
64
|
:image-uri-screenshot: https://raw.githubusercontent.com/asciidoctor/asciidoctor/master/screenshot.png
|
62
65
|
|
63
|
-
{uri-project}[Asciidoctor] is a _fast_ text processor and publishing toolchain for converting {uri-what-is-asciidoc}[AsciiDoc] content to HTML5, DocBook, PDF, and other formats.
|
64
|
-
Asciidoctor is written in Ruby
|
65
|
-
Asciidoctor
|
66
|
-
Asciidoctor
|
66
|
+
{uri-project}[Asciidoctor] is a _fast_, {uri-license}[open source] text processor and publishing toolchain for converting {uri-what-is-asciidoc}[AsciiDoc] content to HTML5, DocBook, PDF, and other formats.
|
67
|
+
Asciidoctor is written in Ruby and runs on all major operation systems.
|
68
|
+
To simplify installation, Asciidoctor is packaged and distributed as a gem to {uri-rubygem}[RubyGems.org] and is packaged for popular Linux distributions and macOS.
|
69
|
+
Asciidoctor can also be run in a JVM using {uri-asciidoctorj}[AsciidoctorJ] or in any JavaScript environment using {uri-asciidoctorjs}[Asciidoctor.js].
|
70
|
+
The Asciidoctor project is {uri-repo}[hosted on GitHub].
|
67
71
|
|
68
72
|
ifndef::env-site[]
|
69
73
|
This document is also available in the following languages: +
|
70
74
|
{uri-rel-file-base}README-zh_CN.adoc[汉语]
|
71
75
|
|
|
76
|
+
{uri-rel-file-base}README-de.adoc[Deutsch]
|
77
|
+
|
|
72
78
|
{uri-rel-file-base}README-fr.adoc[Français]
|
73
79
|
|
|
74
80
|
{uri-rel-file-base}README-jp.adoc[日本語]
|
@@ -99,7 +105,7 @@ image:https://www.okta.com/sites/all/themes/Okta/images/blog/Logos/Okta_Logo_Bri
|
|
99
105
|
|
100
106
|
image:https://secure.gravatar.com/avatar/823717a797dbd78ceff7b26aa397f383.png?size=200[OpenDevise,100,link=https://opendevise.com,title="Let the Creators of Asciidoctor and Antora Help You to Accelerate Your Docs"]
|
101
107
|
|
102
|
-
Major funding for Asciidoctor is provided by our *Change Makers*, https://developer.okta.com/signup?utm_source=asciidoctor&utm_medium=text-link&utm_campaign=sponsor[Okta] and https://opendevise.com[OpenDevise], and our *Strategy Sponsors*, Khronos Group and Linda Roberts.
|
108
|
+
Major funding for Asciidoctor is provided by our *Change Makers*, https://developer.okta.com/signup?utm_source=asciidoctor&utm_medium=text-link&utm_campaign=sponsor[Okta] and https://opendevise.com[OpenDevise], and our *Strategy Sponsors*, https://www.khronos.org/[Khronos Group] and Linda Roberts.
|
103
109
|
Additional funding is provided by our https://asciidoctor.org/supporters[Community Backers].
|
104
110
|
|
105
111
|
You can support this project by becoming a sponsor on https://opencollective.com/asciidoctor[OpenCollective].
|
@@ -113,10 +119,10 @@ image::{image-uri-screenshot}[Preview of AsciiDoc source and corresponding rende
|
|
113
119
|
|
114
120
|
== AsciiDoc Processing
|
115
121
|
|
116
|
-
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
|
122
|
+
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, and man(ual) page output.
|
117
123
|
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.
|
118
124
|
|
119
|
-
|
125
|
+
Asciidoctor is a drop-in replacement for the original AsciiDoc Python processor (`asciidoc.py`).
|
120
126
|
The Asciidoctor test suite has {uri-tests}[> 2,000 tests] to ensure compatibility with the AsciiDoc syntax.
|
121
127
|
|
122
128
|
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]+`).
|
@@ -126,11 +132,12 @@ Asciidoctor also offers a modern, responsive theme based on {uri-foundation}[Fou
|
|
126
132
|
|
127
133
|
You can run Asciidoctor on the JVM using JRuby.
|
128
134
|
To invoke the Asciidoctor API directly from Java and other JVM languages, use {uri-asciidoctorj}[AsciidoctorJ].
|
129
|
-
There are plugins available,
|
135
|
+
There are plugins available for {uri-maven-plugin}[Apache Maven], {uri-gradle-plugin}[Gradle], and {uri-asciidoclet}[Javadoc], which allow you to integrate AsciiDoc processing directly into your build using AsciidoctorJ.
|
130
136
|
|
131
137
|
Asciidoctor also runs in JavaScript.
|
132
|
-
|
133
|
-
Asciidoctor.js is
|
138
|
+
{uri-opal}[Opal] is used to transcompile the Ruby source to JavaScript to produce {uri-asciidoctorjs}[Asciidoctor.js].
|
139
|
+
Asciidoctor.js is a fully-functional version of Asciidoctor that works in any JavaScript environment, such as a web browser or Node.js.
|
140
|
+
It's used to power the AsciiDoc preview extensions for Chrome, Atom, Brackets and other web-based tooling.
|
134
141
|
|
135
142
|
== Requirements
|
136
143
|
|
@@ -141,9 +148,6 @@ Asciidoctor works on Linux, macOS and Windows and requires one of the following
|
|
141
148
|
* Rubinius 2.2.x
|
142
149
|
* Opal (JavaScript)
|
143
150
|
|
144
|
-
We welcome your help testing Asciidoctor on these and other platforms.
|
145
|
-
Refer to the <<Contributing>> section to learn how to get involved.
|
146
|
-
|
147
151
|
[CAUTION]
|
148
152
|
====
|
149
153
|
If you're using a non-English Windows environment, you may bump into an `Encoding::UndefinedConversionError` when invoking Asciidoctor.
|
@@ -158,15 +162,88 @@ Asciidoctor works best when you use UTF-8 everywhere.
|
|
158
162
|
|
159
163
|
== Installation
|
160
164
|
|
161
|
-
Asciidoctor can be installed using (a)
|
165
|
+
Asciidoctor can be installed using (a) package managers for popular Linux distributions, (b) Homebrew for macOS, (c) the `gem install` command (recommended for Windows users), (d) the Asciidoctor Docker image, or (e) Bundler.
|
166
|
+
|
167
|
+
The benefit of using your operating system's 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.
|
168
|
+
|
169
|
+
=== (a) Linux package managers
|
170
|
+
|
171
|
+
The version of Asciidoctor installed by the package manager may not match the latest release of Asciidoctor.
|
172
|
+
Consult the package repository for your distribution to find out which version is packaged per distribution release.
|
173
|
+
|
174
|
+
* https://pkgs.alpinelinux.org/packages?name=asciidoctor[Alpine Linux (asciidoctor)]
|
175
|
+
* https://www.archlinux.org/packages/?name=asciidoctor[Arch Linux (asciidoctor)]
|
176
|
+
* https://packages.debian.org/sid/asciidoctor[Debian (asciidoctor)]
|
177
|
+
* https://apps.fedoraproject.org/packages/rubygem-asciidoctor[Fedora (asciidoctor)]
|
178
|
+
* https://software.opensuse.org/package/rubygem-asciidoctor[OpenSUSE (rubygem-asciidoctor)]
|
179
|
+
* https://packages.ubuntu.com/search?keywords=asciidoctor[Ubuntu (asciidoctor)]
|
180
|
+
|
181
|
+
If you want to use a version of Asciidoctor that is newer than what is installed by the package manager, see the <<gem-install,gem installation instructions>>.
|
182
|
+
|
183
|
+
==== apk (Alpine Linux)
|
184
|
+
|
185
|
+
To install the gem on Alpine Linux, open a terminal and type:
|
186
|
+
|
187
|
+
$ sudo apk add asciidoctor
|
188
|
+
|
189
|
+
==== pacman (Arch Linux)
|
190
|
+
|
191
|
+
To install the gem on Arch-based distributions, open a terminal and type:
|
192
|
+
|
193
|
+
$ sudo pacman -S asciidoctor
|
194
|
+
|
195
|
+
==== APT
|
196
|
+
|
197
|
+
On Debian and Debian-based distributions such as Ubuntu, use APT to install Asciidoctor.
|
198
|
+
To install the package, open a terminal and type:
|
199
|
+
|
200
|
+
$ sudo apt-get install -y asciidoctor
|
201
|
+
|
202
|
+
==== DNF
|
162
203
|
|
163
|
-
|
164
|
-
|
165
|
-
If you need the latest version, you can always fallback to using the `gem` command.
|
204
|
+
On RPM-based Linux distributions, such as Fedora, CentOS, and RHEL, use the DNF package manager to install Asciidoctor.
|
205
|
+
To install the package, open a terminal and type:
|
166
206
|
|
167
|
-
|
207
|
+
$ sudo dnf install -y asciidoctor
|
208
|
+
|
209
|
+
=== (b) Homebrew (macOS)
|
210
|
+
|
211
|
+
You can use Homebrew, the macOS package manager, to install Asciidoctor.
|
212
|
+
If you don’t have Homebrew on your computer, complete the installation instructions at https://brew.sh/[brew.sh] first.
|
213
|
+
Once Homebrew is installed, you’re ready to install the `asciidoctor` gem.
|
214
|
+
Open a terminal and type:
|
215
|
+
|
216
|
+
$ brew install asciidoctor
|
217
|
+
|
218
|
+
Homebrew installs the `asciidoctor` gem into an exclusive prefix that's independent of system gems.
|
219
|
+
|
220
|
+
=== (c) Windows
|
221
|
+
|
222
|
+
To use Asciidoctor with Windows, you have two easy options.
|
223
|
+
|
224
|
+
==== Chocolatey
|
225
|
+
|
226
|
+
When you already use https://chocolatey.org[chocolatey] on your machine, you can use:
|
227
|
+
|
228
|
+
[source]
|
229
|
+
----
|
230
|
+
choco install ruby
|
231
|
+
----
|
232
|
+
|
233
|
+
Then follow <<gem-install,gem installation instructions>>.
|
234
|
+
|
235
|
+
==== Rubyinstaller
|
236
|
+
|
237
|
+
Or you use the https://rubyinstaller.org/downloads/[Rubyinstaller], download the package for your Windows Version and after the installation go ahead with <<gem-install,gem installation instructions>>.
|
168
238
|
|
169
|
-
|
239
|
+
[#gem-install]
|
240
|
+
=== (d) gem install
|
241
|
+
|
242
|
+
Before installing Asciidoctor using `gem install`, you should use https://rvm.io[RVM] to install Ruby in your home directory (i.e., user space).
|
243
|
+
Then, you can safely use the `gem` command to install or update the Asciidoctor gem.
|
244
|
+
When using RVM, gems are installed in a location isolated from the system.
|
245
|
+
|
246
|
+
Open a terminal and type:
|
170
247
|
|
171
248
|
$ gem install asciidoctor
|
172
249
|
|
@@ -174,20 +251,11 @@ If you want to install a pre-release version (e.g., a release candidate), use:
|
|
174
251
|
|
175
252
|
$ gem install asciidoctor --pre
|
176
253
|
|
177
|
-
|
178
|
-
[TIP]
|
179
|
-
====
|
180
|
-
If you have an earlier version of Asciidoctor installed, you can update it using:
|
254
|
+
=== (e) Docker
|
181
255
|
|
182
|
-
|
256
|
+
See {uri-install-docker}[Installing Asciidoctor using Docker].
|
183
257
|
|
184
|
-
|
185
|
-
If that's the case, use the following gem command to remove the old versions:
|
186
|
-
|
187
|
-
$ gem cleanup asciidoctor
|
188
|
-
====
|
189
|
-
|
190
|
-
=== (b) Bundler
|
258
|
+
=== (f) Bundler
|
191
259
|
|
192
260
|
. Create a Gemfile in the root folder of your project (or the current directory)
|
193
261
|
. Add the `asciidoctor` gem to your Gemfile as follows:
|
@@ -206,86 +274,48 @@ gem 'asciidoctor'
|
|
206
274
|
$ bundle
|
207
275
|
|
208
276
|
To upgrade the gem, specify the new version in the Gemfile and run `bundle` again.
|
209
|
-
Using `bundle update` is *not* recommended as it will also update other gems, which may not be the desired result.
|
210
|
-
|
211
|
-
=== (c) Linux package managers
|
277
|
+
Using `bundle update` (without specifying a gem) is *not* recommended as it will also update other gems, which may not be the desired result.
|
212
278
|
|
213
|
-
|
279
|
+
== Upgrade
|
214
280
|
|
215
|
-
|
281
|
+
If you installed Asciidoctor using a package manager, your operating system is probably configured to automatically update packages, in which case you don't need to update the gem manually.
|
216
282
|
|
217
|
-
|
283
|
+
=== apk (Alpine Linux)
|
218
284
|
|
219
285
|
To upgrade the gem, use:
|
220
286
|
|
221
|
-
$ sudo
|
222
|
-
|
223
|
-
TIP: Your system may be configured to automatically update rpm packages, in which case no action is required by you to update the gem.
|
224
|
-
|
225
|
-
==== apt-get (Debian or Ubuntu)
|
226
|
-
|
227
|
-
To install the gem on Debian or Ubuntu, open a terminal and type:
|
287
|
+
$ sudo apk add -u asciidoctor
|
228
288
|
|
229
|
-
|
289
|
+
=== APT
|
230
290
|
|
231
291
|
To upgrade the gem, use:
|
232
292
|
|
233
293
|
$ sudo apt-get upgrade -y asciidoctor
|
234
294
|
|
235
|
-
|
236
|
-
|
237
|
-
The version of Asciidoctor installed by the package manager (apt-get) may not match the latest release of Asciidoctor.
|
238
|
-
Consult the package repository for your distribution to find out which version is packaged per distribution release.
|
239
|
-
|
240
|
-
* https://packages.debian.org/search?keywords=asciidoctor&searchon=names&exact=1&suite=all§ion=all[asciidoctor package by Debian release]
|
241
|
-
* https://packages.ubuntu.com/search?keywords=asciidoctor&searchon=names&exact=1&suite=all§ion=all[asciidoctor package by Ubuntu release]
|
242
|
-
|
243
|
-
[CAUTION]
|
244
|
-
====
|
245
|
-
You're advised against using the `gem update` command to update a gem managed by the package manager.
|
246
|
-
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).
|
247
|
-
Simply put, system gems should only be managed by the package manager.
|
248
|
-
|
249
|
-
If you want to use a version of Asciidoctor that is newer than what is installed by the package manager, you should use https://rvm.io[RVM] to install Ruby in your home directory (i.e., user space).
|
250
|
-
Then, you can safely use the `gem` command to install or update the Asciidoctor gem.
|
251
|
-
When using RVM, gems are installed in a location isolated from the system.
|
252
|
-
====
|
253
|
-
|
254
|
-
==== apk (Alpine Linux)
|
255
|
-
|
256
|
-
To install the gem on Alpine Linux, open a terminal and type:
|
257
|
-
|
258
|
-
$ sudo apk add asciidoctor
|
295
|
+
=== DNF
|
259
296
|
|
260
297
|
To upgrade the gem, use:
|
261
298
|
|
262
|
-
$ sudo
|
263
|
-
|
264
|
-
TIP: Your system may be configured to automatically update apk packages, in which case no action is required by you to update the gem.
|
265
|
-
|
266
|
-
=== (d) Homebrew (macOS)
|
267
|
-
|
268
|
-
You can use Homebrew to install Asciidoctor on macOS.
|
269
|
-
If you haven't yet installed Homebrew, follow the instructions at https://brew.sh/[brew.sh].
|
270
|
-
|
271
|
-
Once Homebrew is installed, you can install the `asciidoctor` gem using the http://brewformulas.org/Asciidoctor[asciidoctor] package.
|
272
|
-
To do so, open a terminal and type:
|
299
|
+
$ sudo dnf update -y asciidoctor
|
273
300
|
|
274
|
-
|
301
|
+
=== Homebrew (macOS)
|
275
302
|
|
276
303
|
To upgrade the gem, use:
|
277
304
|
|
278
305
|
$ brew update
|
279
306
|
$ brew upgrade asciidoctor
|
280
307
|
|
281
|
-
|
308
|
+
=== gem install
|
309
|
+
|
310
|
+
If you previously installed Asciidoctor using the `gem` command, you'll need to manually upgrade Asciidoctor when a new version is released.
|
311
|
+
You can upgrade the gem by typing:
|
312
|
+
|
313
|
+
$ gem install asciidoctor
|
282
314
|
|
283
|
-
|
315
|
+
When you install a new version of the gem using `gem install`, you end up with multiple versions installed.
|
316
|
+
Use the following command to remove the old versions:
|
284
317
|
|
285
|
-
|
286
|
-
* {uri-install-macos-doc}[Installing Asciidoctor on macOS]
|
287
|
-
// at the moment, the following entry is just a reiteration of the information in this README
|
288
|
-
//* {uri-install-doc}[Installing the Asciidoctor toolchain]
|
318
|
+
$ gem cleanup asciidoctor
|
289
319
|
|
290
320
|
== Usage
|
291
321
|
|
@@ -299,7 +329,7 @@ You should see information about the Asciidoctor version and your Ruby environme
|
|
299
329
|
[.output,subs=attributes+]
|
300
330
|
....
|
301
331
|
Asciidoctor {release-version} [https://asciidoctor.org]
|
302
|
-
Runtime Environment (ruby 2.
|
332
|
+
Runtime Environment (ruby 2.5.1p57 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
|
303
333
|
....
|
304
334
|
|
305
335
|
Asciidoctor also provides an API.
|
@@ -382,9 +412,8 @@ For more information about how to use the API or to customize the output, refer
|
|
382
412
|
|
383
413
|
== Contributing
|
384
414
|
|
385
|
-
In the spirit of {uri-freesoftware}[free software], _everyone_ is encouraged to help improve this project.
|
386
|
-
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.
|
387
415
|
New contributors are always welcome!
|
416
|
+
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.
|
388
417
|
|
389
418
|
Here are some ways *you* can contribute:
|
390
419
|
|
@@ -392,8 +421,7 @@ Here are some ways *you* can contribute:
|
|
392
421
|
* by reporting bugs
|
393
422
|
* by suggesting new features
|
394
423
|
* by writing or editing documentation
|
395
|
-
* by writing
|
396
|
-
* by writing code -- _No patch is too small._
|
424
|
+
* by writing code with tests -- _No patch is too small._
|
397
425
|
** fix typos
|
398
426
|
** add comments
|
399
427
|
** clean up inconsistent whitespace
|
@@ -406,16 +434,13 @@ The {uri-contribute}[Contributing] guide provides information on how to create,
|
|
406
434
|
|
407
435
|
== Getting Help
|
408
436
|
|
409
|
-
|
437
|
+
Asciidoctor is developed to help you easily write and publish your content.
|
410
438
|
But we can't do it without your feedback!
|
411
439
|
We encourage you to ask questions and discuss any aspects of the project on the discussion list, on Twitter or in the chat room.
|
412
440
|
|
441
|
+
Chat (Gitter):: image:https://badges.gitter.im/Join%20In.svg[Gitter, link=https://gitter.im/asciidoctor/asciidoctor]
|
413
442
|
Discussion list (Nabble):: {uri-discuss}
|
414
443
|
Twitter:: https://twitter.com/search?f=tweets&q=%23asciidoctor[#asciidoctor] hashtag or https://twitter.com/asciidoctor[@asciidoctor] mention
|
415
|
-
Chat (Gitter):: image:https://badges.gitter.im/Join%20In.svg[Gitter, link=https://gitter.im/asciidoctor/asciidoctor]
|
416
|
-
////
|
417
|
-
Chat (IRC):: {uri-irc}[#asciidoctor] on FreeNode IRC
|
418
|
-
////
|
419
444
|
|
420
445
|
ifdef::env-github[]
|
421
446
|
Further information and documentation about Asciidoctor can be found on the project's website.
|
@@ -429,19 +454,19 @@ Source repository (git):: {uri-repo}
|
|
429
454
|
Issue tracker:: {uri-issues}
|
430
455
|
Asciidoctor organization on GitHub:: {uri-org}
|
431
456
|
|
432
|
-
==
|
457
|
+
== License
|
433
458
|
|
434
|
-
Copyright (C) 2012-2018 Dan Allen,
|
435
|
-
|
459
|
+
Copyright (C) 2012-2018 Dan Allen, Sarah White and the individual contributors to Asciidoctor.
|
460
|
+
Use of this software is granted under the terms of the MIT License.
|
436
461
|
|
437
|
-
See the {uri-license}[LICENSE]
|
462
|
+
See the {uri-license}[LICENSE] for the full license text.
|
438
463
|
|
439
464
|
== Authors
|
440
465
|
|
441
|
-
*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
|
466
|
+
*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 individuals] in Asciidoctor's awesome community.
|
442
467
|
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].
|
443
468
|
|
444
|
-
*AsciiDoc* was started by Stuart Rackham and has received contributions from many
|
469
|
+
*AsciiDoc* was started by Stuart Rackham and has received contributions from many individuals in the AsciiDoc community.
|
445
470
|
|
446
471
|
ifndef::env-site[]
|
447
472
|
== Changelog
|