Skip to content

Commit 75feae5

Browse files
authored
Fix javadoc links, using branch information provided by the doc build system (#92)
1 parent 6bbde29 commit 75feae5

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

docs/index-local.asciidoc

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// Allow building docs locally without a checkout of the Elasticsearch repo
22
:elasticsearch-root: {docdir}/local/elasticsearch
33

4-
// Version is needed to build locally, its value doesn't matter.
5-
:version: 7.16.2
64
include::index.asciidoc[]

docs/index.asciidoc

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
= Elasticsearch Java API Client
22

3-
:branch: master
3+
include::{asciidoc-dir}/../../shared/versions/stack/{source_branch}.asciidoc[]
44
include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
55

66
:java-client: Java API Client
77
:doc-tests: {docdir}/../java-client/src/test/java/co/elastic/clients/documentation
88

9+
ifeval::["{release-state}"=="unreleased"]
10+
:java-client-javadoc: https://snapshots.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{version}-SNAPSHOT
11+
:rest-client-javadoc: https://snapshots.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client/{version}-SNAPSHOT
12+
:rest-client-sniffer-javadoc: https://snapshots.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client-sniffer/{version}-SNAPSHOT
13+
:version_qualified: {bare_version}-SNAPSHOT
14+
endif::[]
15+
16+
ifeval::["{release-state}"!="unreleased"]
17+
:java-client-javadoc: https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{version}
18+
:rest-client-javadoc: https://artifacts.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client/{version}
19+
:rest-client-sniffer-javadoc: https://artifacts.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client-sniffer/{version}
20+
:version_qualified: {bare_version}
21+
endif::[]
22+
923
include::introduction.asciidoc[]
1024
include::installation.asciidoc[]
1125
include::connecting.asciidoc[]
1226
include::migrate.asciidoc[]
1327
include::api-conventions.asciidoc[]
1428
include::javadoc-and-source.asciidoc[]
1529

16-
:java-client!:
17-
:doc-tests!:
18-
1930
include::{elasticsearch-root}/docs/java-rest/low-level/index.asciidoc[]

docs/javadoc-and-source.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[java-client-javadoc]]
22
== Javadoc and source code
33

4-
The javadoc for the {java-client} can be found at https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{version}/index.html.
4+
The javadoc for the {java-client} can be found at {java-client-javadoc}/index.html.
55

66
The source code is at https://github.com/elastic/elasticsearch-java/ and is licensed under the Apache 2.0 License.

0 commit comments

Comments
 (0)