summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README-fr.adoc31
-rw-r--r--README-jp.adoc25
-rw-r--r--README-zh_CN.adoc25
-rw-r--r--README.adoc12
-rw-r--r--_settings-README.adoc47
5 files changed, 61 insertions, 79 deletions
diff --git a/README-fr.adoc b/README-fr.adoc
index 1c21f566..5d103150 100644
--- a/README-fr.adoc
+++ b/README-fr.adoc
@@ -1,17 +1,23 @@
= Asciidoctor
Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]>
-// FIXME use build system to expand includes statically so document renders properly on GitHub
-ifeval::[{safe-mode-level} < 20]
-include::_settings-README.adoc[]
-endif::[]
-ifeval::[{safe-mode-level} >= 20]
// settings:
:page-layout: base
:idprefix:
:idseparator: -
:source-language: ruby
:language: {source-language}
-ifdef::env-github[:status:]
+ifndef::env-github[:icons: font]
+ifdef::env-github[]
+:status:
+:outfilesuffix: .adoc
+:caution-caption: :fire:
+:important-caption: :exclamation:
+:note-caption: :paperclip:
+:tip-caption: :bulb:
+:warning-caption: :warning:
+endif::[]
+// Variables:
+:release-version: 1.5.6
// URIs:
:uri-org: https://github.com/asciidoctor
:uri-repo: {uri-org}/asciidoctor
@@ -52,7 +58,6 @@ endif::[]
:uri-ruby: https://ruby-lang.org
// images:
:image-uri-screenshot: https://raw.githubusercontent.com/asciidoctor/asciidoctor/master/screenshot.png
-endif::[]
{uri-project}/[Asciidoctor] est un processeur de texte _rapide_ et une chaîne de publication pour convertir du contenu {uri-what-is-asciidoc}[AsciiDoc] en HTML5, DocBook 5 (ou 4.5) et d'autres formats.
Asciidoctor est écrit en Ruby, packagé sous forme de RubyGem et publié sur {uri-rubygem}[RubyGems.org].
@@ -172,12 +177,12 @@ Si c'est le cas, utilisez la commande gem suivante pour supprimer la vieille ver
. Créez un fichier Gemfile à la racine de votre projet (ou du répertoire courant)
. Ajoutez la gemme `asciidoctor` dans votre fichier Gemfile comme ci-dessous :
+
-[source]
+[source,subs=attributes+]
----
source 'https://rubygems.org'
gem 'asciidoctor'
# ou spécifier la version explicitement
-# gem 'asciidoctor', '1.5.6'
+# gem 'asciidoctor', '{release-version}'
----
. Sauvegardez le fichier Gemfile
@@ -260,10 +265,10 @@ Pour vérifier sa disponibilité, exécutez la commande suivante dans votre term
Vous devriez voir les informations concernant la version d'Asciidoctor et celle de votre environnement Ruby s'afficher dans le terminal.
-[.output]
+[.output,subs=attributes+]
....
-Asciidoctor 1.5.6 [http://asciidoctor.org]
-Runtime Environment (ruby 2.2.2p95 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
+Asciidoctor {release-version} [http://asciidoctor.org]
+Runtime Environment (ruby 2.4.1p111 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
....
Asciidoctor fournit aussi une API.
@@ -410,7 +415,7 @@ Le projet a été initié en 2012 par https://github.com/erebor[Ryan Waldron] et
== Changelog
ifeval::[{safe-mode-level} < 20]
-include::CHANGELOG.adoc[tags=compact;parse,leveloffset=+1]
+include::CHANGELOG.adoc[tag=compact,leveloffset=+1]
endif::[]
Référez-vous au fichier {uri-changelog}[CHANGELOG] pour une liste complète des changements des versions précédentes.
diff --git a/README-jp.adoc b/README-jp.adoc
index 4a43f304..87d49cbe 100644
--- a/README-jp.adoc
+++ b/README-jp.adoc
@@ -6,7 +6,18 @@ Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://g
:idseparator: -
:source-language: ruby
:language: {source-language}
-ifdef::env-github[:status:]
+ifndef::env-github[:icons: font]
+ifdef::env-github[]
+:status:
+:outfilesuffix: .adoc
+:caution-caption: :fire:
+:important-caption: :exclamation:
+:note-caption: :paperclip:
+:tip-caption: :bulb:
+:warning-caption: :warning:
+endif::[]
+// Variables:
+:release-version: 1.5.6
// URIs:
:uri-org: https://github.com/asciidoctor
:uri-repo: {uri-org}/asciidoctor
@@ -54,7 +65,7 @@ gemはいくつかのLinuxディストリビューション, Fedora, Debian, Ubu
Asciidoctorはオープンソース {uri-repo}[hosted on Github] で {uri-license}[the MIT licence]のもとに配布されます.
ifndef::env-site[]
-.Translations of the document are available in the following languages:
+.Translations of this document are available in the following languages:
* {uri-rel-file-base}README-zh_CN.adoc[汉语]
* {uri-rel-file-base}README.adoc[English]
* {uri-rel-file-base}README-fr.adoc[Français]
@@ -162,12 +173,12 @@ TIP: Linuxパッケージマネージャを用いてインストールするこ
. プロジェクトフォルダーのルート(かカレントディレクトリ)にGemfileを作成
. `asciidoctor` gemをGemfileに以下のように追加:
+
-[source]
+[source,subs=attributes+]
----
source 'https://rubygems.org'
gem 'asciidoctor'
# or specify the version explicitly
-# gem 'asciidoctor', '1.5.6'
+# gem 'asciidoctor', '{release-version}'
----
. Gemfileを保存
@@ -250,10 +261,10 @@ Asciidoctorのインストールに成功すれば, `asciidoctor` コマンド
AsciidoctorのバージョンとRuby環境についての情報がターミナルに出力されたのを見ることができるはずです.
-[.output]
+[.output,subs=attributes+]
....
-Asciidoctor 1.5.6 [http://asciidoctor.org]
-Runtime Environment (ruby 2.2.2p95 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
+Asciidoctor {release-version} [http://asciidoctor.org]
+Runtime Environment (ruby 2.4.1p111 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
....
AsciidoctorはAPIを提供します.
diff --git a/README-zh_CN.adoc b/README-zh_CN.adoc
index 3b348d69..47105106 100644
--- a/README-zh_CN.adoc
+++ b/README-zh_CN.adoc
@@ -6,7 +6,18 @@ Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://g
:idseparator: -
:source-language: ruby
:language: {source-language}
-ifdef::env-github[:status:]
+ifndef::env-github[:icons: font]
+ifdef::env-github[]
+:status:
+:outfilesuffix: .adoc
+:caution-caption: :fire:
+:important-caption: :exclamation:
+:note-caption: :paperclip:
+:tip-caption: :bulb:
+:warning-caption: :warning:
+endif::[]
+// Variables:
+:release-version: 1.5.6
// URIs:
:uri-org: https://github.com/asciidoctor
:uri-repo: {uri-org}/asciidoctor
@@ -75,7 +86,7 @@ Asciidoctor 也可以运行在 JavaScript 上。
Asciidoctor.js 被用于 AsciiDoc 预览,支持 Chrome 扩展,Atom,Brackets 或其他基于 Web 的工具。
****
-ifdef::badges[]
+ifdef::status[]
.*Project health*
image:https://img.shields.io/travis/asciidoctor/asciidoctor/master.svg[Build Status (Travis CI), link=https://travis-ci.org/asciidoctor/asciidoctor]
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]
@@ -167,12 +178,12 @@ TIP: 使用 Linux 包管理器安装的好处是如果 Ruby 和 RubyGems 库没
. 在项目的根目录(或者当前路径),创建一个 `Gemfile` 文件;
. 在这个文件中添加 `asciidoctor` gem 如下:
+
-[source]
+[source,subs=attributes+]
----
source 'https://rubygems.org'
gem 'asciidoctor'
# 或者明确指明版本
-# gem 'asciidoctor', '1.5.6'
+# gem 'asciidoctor', '{release-version}'
----
. 保存 `Gemfile` 文件
@@ -259,10 +270,10 @@ TIP: 如果你的 Alpine Linux 系统配置的是自动升级包,在这种情
你应该看到关于 Asciidoctor 和 Ruby 环境信息将打印到你的终端上。
-[.output]
+[.output,subs=attributes+]
....
-Asciidoctor 1.5.6 [http://asciidoctor.org]
-Runtime Environment (ruby 2.2.2p95 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
+Asciidoctor {release-version} [http://asciidoctor.org]
+Runtime Environment (ruby 2.4.1p111 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
....
Asciidoctor 还提供了一套 API。
diff --git a/README.adoc b/README.adoc
index f8be8ca0..8315d88c 100644
--- a/README.adoc
+++ b/README.adoc
@@ -16,6 +16,8 @@ ifdef::env-github[]
:tip-caption: :bulb:
:warning-caption: :warning:
endif::[]
+// Variables:
+:release-version: 1.5.6
// URIs:
:uri-org: https://github.com/asciidoctor
:uri-repo: {uri-org}/asciidoctor
@@ -174,12 +176,12 @@ If that's the case, use the following gem command to remove the old versions:
. Create a Gemfile in the root folder of your project (or the current directory)
. Add the `asciidoctor` gem to your Gemfile as follows:
+
-[source]
+[source,subs=attributes+]
----
source 'https://rubygems.org'
gem 'asciidoctor'
# or specify the version explicitly
-# gem 'asciidoctor', '1.5.6'
+# gem 'asciidoctor', '{release-version}'
----
. Save the Gemfile
@@ -262,10 +264,10 @@ To verify it's available, run the following in your terminal:
You should see information about the Asciidoctor version and your Ruby environment printed in the terminal.
-[.output]
+[.output,subs=attributes+]
....
-Asciidoctor 1.5.6 [http://asciidoctor.org]
-Runtime Environment (ruby 2.2.2p95 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
+Asciidoctor {release-version} [http://asciidoctor.org]
+Runtime Environment (ruby 2.4.1p111 [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
....
Asciidoctor also provides an API.
diff --git a/_settings-README.adoc b/_settings-README.adoc
deleted file mode 100644
index 8e88bdf8..00000000
--- a/_settings-README.adoc
+++ /dev/null
@@ -1,47 +0,0 @@
-// settings:
-:page-layout: base
-:idprefix:
-:idseparator: -
-:source-language: ruby
-:language: {source-language}
-ifdef::env-github[:badges:]
-// URIs:
-:uri-org: https://github.com/asciidoctor
-:uri-repo: {uri-org}/asciidoctor
-:uri-asciidoctorj: {uri-org}/asciidoctorj
-:uri-asciidoctorjs: {uri-org}/asciidoctor.js
-:uri-project: http://asciidoctor.org
-ifdef::env-site[:uri-project: link:]
-:uri-docs: {uri-project}/docs
-:uri-news: {uri-project}/news
-:uri-manpage: {uri-project}/man/asciidoctor
-:uri-issues: {uri-repo}/issues
-:uri-contributors: {uri-repo}/graphs/contributors
-:uri-rel-file-base: link:
-:uri-rel-tree-base: link:
-ifdef::env-site[]
-:uri-rel-file-base: {uri-repo}/blob/master/
-:uri-rel-tree-base: {uri-repo}/tree/master/
-endif::[]
-:uri-changelog: {uri-rel-file-base}CHANGELOG.adoc
-:uri-contribute: {uri-rel-file-base}CONTRIBUTING.adoc
-:uri-license: {uri-rel-file-base}LICENSE.adoc
-:uri-tests: {uri-rel-tree-base}test
-:uri-discuss: http://discuss.asciidoctor.org
-:uri-irc: irc://irc.freenode.org/#asciidoctor
-:uri-rubygem: https://rubygems.org/gems/asciidoctor
-:uri-what-is-asciidoc: {uri-docs}/what-is-asciidoc
-:uri-user-manual: {uri-docs}/user-manual
-:uri-install-docker: https://github.com/asciidoctor/docker-asciidoctor
-//:uri-install-doc: {uri-docs}/install-toolchain
-:uri-install-osx-doc: {uri-docs}/install-asciidoctor-macosx
-:uri-render-doc: {uri-docs}/render-documents
-:uri-themes-doc: {uri-docs}/produce-custom-themes-using-asciidoctor-stylesheet-factory
-:uri-gitscm-repo: https://github.com/git/git-scm.com
-:uri-prototype: {uri-gitscm-repo}/commits/master/lib/asciidoc.rb
-:uri-freesoftware: https://www.gnu.org/philosophy/free-sw.html
-:uri-foundation: http://foundation.zurb.com
-:uri-tilt: https://github.com/rtomayko/tilt
-:uri-ruby: https://ruby-lang.org
-// images:
-:image-uri-screenshot: https://raw.githubusercontent.com/asciidoctor/asciidoctor/master/screenshot.png