summaryrefslogtreecommitdiff
path: root/README.adoc
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-03-07 13:32:43 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-03-07 13:32:43 +0100
commit89e4858c2bfe6a528261ba0968e40ffe2360f976 (patch)
tree78657203011a5b6f6e4a4347286d6b39e40fc156 /README.adoc
parent76631beb2eead2e6fca10b0b53b1c94338feb8e1 (diff)
Readme: Exclude irrelevant parts from readme for npm
Diffstat (limited to 'README.adoc')
-rw-r--r--README.adoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.adoc b/README.adoc
index 70a4ac9..c34066e 100644
--- a/README.adoc
+++ b/README.adoc
@@ -62,6 +62,7 @@ where “The First Section” is *title* of the section with id _sec1_ in _other
== Installation
+ifndef::npm-readme[]
=== Ruby
Install {gem-name} from Rubygems:
@@ -76,6 +77,7 @@ gem install {gem-name} --pre
=== Node.js
+endif::npm-readme[]
Install {gem-name} from npmjs.com:
@@ -85,6 +87,7 @@ npm install --save {gem-name}
== Usage
+ifndef::npm-readme[]
=== CLI
If you invoke Asciidoctor from command-line, use option `-r` to load the extension:
@@ -104,6 +107,7 @@ IMPORTANT: Bundler automatically _requires_ all the specified gems.
=== Node.js
+endif::npm-readme[]
[source, js, subs="+attributes"]
----