Skip to content

Commit

Permalink
[DOCS] Use shared attributes (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig committed Sep 17, 2019
1 parent 6095e44 commit d1581ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/src/reference/asciidoc/core/intro/download.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop</artifactId>
<version>{ver}</version>
<version>{version}</version>
</dependency>
----

Expand All @@ -29,7 +29,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop-mr</artifactId> <1>
<version>{ver}</version>
<version>{version}</version>
</dependency>
----

Expand All @@ -41,7 +41,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop-hive</artifactId> <1>
<version>{ver}</version>
<version>{version}</version>
</dependency>
----

Expand All @@ -53,7 +53,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop-pig</artifactId> <1>
<version>{ver}</version>
<version>{version}</version>
</dependency>
----

Expand All @@ -65,7 +65,7 @@ These are available under the same `groupId`, using an `artifactId` with the pat
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-spark-20_2.10</artifactId> <1>
<version>{ver}</version>
<version>{version}</version>
</dependency>
----

Expand Down Expand Up @@ -93,7 +93,7 @@ The Spark connector framework is the most sensitive to version incompatibilities
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-storm</artifactId> <1>
<version>{ver}</version>
<version>{version}</version>
</dependency>
----

Expand Down
6 changes: 3 additions & 3 deletions docs/src/reference/asciidoc/core/intro/requirements.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ java version "1.8.0_45"
[[requirements-es]]
=== {es}

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

Expand All @@ -32,7 +32,7 @@ The {es} version is shown in its folder name:
["source","bash",subs="attributes"]
----
$ ls
elasticsearch-{es-v}
elasticsearch-{elasticsearch_version}
----

If {es} is running (locally or remotely), one can find out its version through REST:
Expand All @@ -44,7 +44,7 @@ $ curl -XGET http://localhost:9200
"status" : 200,
"name" : "Dazzler",
"version" : {
"number" : "{es-v}",
"number" : "{elasticsearch_version}",
...
},
"tagline" : "You Know, for Search"
Expand Down
4 changes: 1 addition & 3 deletions docs/src/reference/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
:krb: Kerberos
:ey: Elasticsearch on YARN
:description: Reference documentation of {eh}
:ver: 7.1.1
:ver-d: 7.1.2-SNAPSHOT
:es-v: 7.1.1
:ver-d: {version}-SNAPSHOT
:sp-v: 2.2.0
:st-v: 1.0.1
:pg-v: 0.15.0
Expand Down

0 comments on commit d1581ea

Please sign in to comment.