Browse Source

Use Versions.asciidoc for groovy docs too

Clinton Gormley 8 years ago
parent
commit
0fea2a207e

+ 1 - 1
docs/groovy-api/delete.asciidoc

@@ -2,7 +2,7 @@
 == Delete API
 
 The delete API is very similar to the
-// {java}/java-docs-delete.html[]
+// {javaclient}/java-docs-delete.html[]
 Java delete API, here is an
 example:
 

+ 1 - 1
docs/groovy-api/get.asciidoc

@@ -2,7 +2,7 @@
 == Get API
 
 The get API is very similar to the
-// {java}/java-docs-get.html[]
+// {javaclient}/java-docs-get.html[]
 Java get API. The main benefit
 of using groovy is handling the source content. It can be automatically
 converted to a `Map` which means using Groovy to navigate it is simple:

+ 3 - 4
docs/groovy-api/index.asciidoc

@@ -1,7 +1,6 @@
 = Groovy API
-:ref:  http://www.elastic.co/guide/en/elasticsearch/reference/current
-:java: http://www.elastic.co/guide/en/elasticsearch/client/java-api/current
-:version: 6.0.0-alpha1
+
+include::../Versions.asciidoc[]
 
 [preface]
 == Preface
@@ -13,7 +12,7 @@ asynchronous in nature (they either accept a listener, or return a
 future).
 
 The Groovy API is a wrapper on top of the
-{java}[Java API] exposing it in a groovier
+{javaclient}[Java API] exposing it in a groovier
 manner. The execution options for each API follow a similar manner and
 covered in <<anatomy>>.
 

+ 1 - 1
docs/groovy-api/index_.asciidoc

@@ -2,7 +2,7 @@
 == Index API
 
 The index API is very similar to the
-// {java}/java-docs-index.html[]
+// {javaclient}/java-docs-index.html[]
 Java index API. The Groovy
 extension to it is the ability to provide the indexed source using a
 closure. For example:

+ 1 - 1
docs/groovy-api/search.asciidoc

@@ -2,7 +2,7 @@
 == Search API
 
 The search API is very similar to the
-// {java}/java-search.html[]
+// {javaclient}/java-search.html[]
 Java search API. The Groovy
 extension allows to provide the search source to execute as a `Closure`
 including the query itself (similar to GORM criteria builder):