Skip to content

Commit 54986f7

Browse files
committed
[DOCS] Use shared attributes (#1355)
1 parent 5df1dcb commit 54986f7

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

docs/src/reference/asciidoc/core/intro/download.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<dependency>
99
<groupId>org.elasticsearch</groupId>
1010
<artifactId>elasticsearch-hadoop</artifactId>
11-
<version>{ver}</version>
11+
<version>{version}</version>
1212
</dependency>
1313
----
1414

@@ -29,7 +29,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
2929
<dependency>
3030
<groupId>org.elasticsearch</groupId>
3131
<artifactId>elasticsearch-hadoop-mr</artifactId> <1>
32-
<version>{ver}</version>
32+
<version>{version}</version>
3333
</dependency>
3434
----
3535

@@ -41,7 +41,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
4141
<dependency>
4242
<groupId>org.elasticsearch</groupId>
4343
<artifactId>elasticsearch-hadoop-hive</artifactId> <1>
44-
<version>{ver}</version>
44+
<version>{version}</version>
4545
</dependency>
4646
----
4747

@@ -53,7 +53,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
5353
<dependency>
5454
<groupId>org.elasticsearch</groupId>
5555
<artifactId>elasticsearch-hadoop-pig</artifactId> <1>
56-
<version>{ver}</version>
56+
<version>{version}</version>
5757
</dependency>
5858
----
5959

@@ -65,7 +65,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
6565
<dependency>
6666
<groupId>org.elasticsearch</groupId>
6767
<artifactId>elasticsearch-spark-20_2.10</artifactId> <1>
68-
<version>{ver}</version>
68+
<version>{version}</version>
6969
</dependency>
7070
----
7171

@@ -93,7 +93,7 @@ The Spark connector framework is the most sensitive to version incompatibilities
9393
<dependency>
9494
<groupId>org.elasticsearch</groupId>
9595
<artifactId>elasticsearch-storm</artifactId> <1>
96-
<version>{ver}</version>
96+
<version>{version}</version>
9797
</dependency>
9898
----
9999

docs/src/reference/asciidoc/core/intro/requirements.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ java version "1.8.0_45"
2323
[[requirements-es]]
2424
=== {es}
2525

26-
We *highly* recommend using the latest Elasticsearch (currently {es-v}). While {eh} maintains backwards compatibility
26+
We *highly* recommend using the latest Elasticsearch (currently {elasticsearch_version}). While {eh} maintains backwards compatibility
2727
with previous versions of {es}, we strongly recommend using the latest, stable version of Elasticsearch. You can
2828
find a matrix of supported versions https://www.elastic.co/support/matrix#matrix_compatibility[here].
2929

@@ -32,7 +32,7 @@ The {es} version is shown in its folder name:
3232
["source","bash",subs="attributes"]
3333
----
3434
$ ls
35-
elasticsearch-{es-v}
35+
elasticsearch-{elasticsearch_version}
3636
----
3737

3838
If {es} is running (locally or remotely), one can find out its version through REST:
@@ -44,7 +44,7 @@ $ curl -XGET http://localhost:9200
4444
"status" : 200,
4545
"name" : "Dazzler",
4646
"version" : {
47-
"number" : "{es-v}",
47+
"number" : "{elasticsearch_version}",
4848
...
4949
},
5050
"tagline" : "You Know, for Search"

docs/src/reference/asciidoc/index.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
:krb: Kerberos
1010
:ey: Elasticsearch on YARN
1111
:description: Reference documentation of {eh}
12-
:ver: 7.2.1
13-
:ver-d: 7.2.2-SNAPSHOT
14-
:es-v: 7.2.2-SNAPSHOT
12+
:ver-d: {version}-SNAPSHOT
1513
:sp-v: 2.2.0
1614
:st-v: 1.0.1
1715
:pg-v: 0.15.0

0 commit comments

Comments
 (0)