diff --git a/docs/index-local.asciidoc b/docs/index-local.asciidoc index 8f049f04e..48b04093a 100644 --- a/docs/index-local.asciidoc +++ b/docs/index-local.asciidoc @@ -1,6 +1,4 @@ // Allow building docs locally without a checkout of the Elasticsearch repo :elasticsearch-root: {docdir}/local/elasticsearch -// Version is needed to build locally, its value doesn't matter. -:version: 7.16.2 include::index.asciidoc[] diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 711b054d1..71775d8bf 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -1,11 +1,25 @@ = Elasticsearch Java API Client -:branch: master +include::{asciidoc-dir}/../../shared/versions/stack/{source_branch}.asciidoc[] include::{asciidoc-dir}/../../shared/attributes.asciidoc[] :java-client: Java API Client :doc-tests: {docdir}/../java-client/src/test/java/co/elastic/clients/documentation +ifeval::["{release-state}"=="unreleased"] +:java-client-javadoc: https://snapshots.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{version}-SNAPSHOT +:rest-client-javadoc: https://snapshots.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client/{version}-SNAPSHOT +:rest-client-sniffer-javadoc: https://snapshots.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client-sniffer/{version}-SNAPSHOT +:version_qualified: {bare_version}-SNAPSHOT +endif::[] + +ifeval::["{release-state}"!="unreleased"] +:java-client-javadoc: https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{version} +:rest-client-javadoc: https://artifacts.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client/{version} +:rest-client-sniffer-javadoc: https://artifacts.elastic.co/javadoc/org/elasticsearch/client/elasticsearch-rest-client-sniffer/{version} +:version_qualified: {bare_version} +endif::[] + include::introduction.asciidoc[] include::installation.asciidoc[] include::connecting.asciidoc[] @@ -13,7 +27,4 @@ include::migrate.asciidoc[] include::api-conventions.asciidoc[] include::javadoc-and-source.asciidoc[] -:java-client!: -:doc-tests!: - include::{elasticsearch-root}/docs/java-rest/low-level/index.asciidoc[] diff --git a/docs/javadoc-and-source.asciidoc b/docs/javadoc-and-source.asciidoc index 3f02070e2..8298f97c5 100644 --- a/docs/javadoc-and-source.asciidoc +++ b/docs/javadoc-and-source.asciidoc @@ -1,6 +1,6 @@ [[java-client-javadoc]] == Javadoc and source code -The javadoc for the {java-client} can be found at https://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{version}/index.html. +The javadoc for the {java-client} can be found at {java-client-javadoc}/index.html. The source code is at https://github.com/elastic/elasticsearch-java/ and is licensed under the Apache 2.0 License.