Skip to content

Fix javadoc links, using branch information provided by the doc build system #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/index-local.asciidoc
Original file line number Diff line number Diff line change
@@ -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[]
19 changes: 15 additions & 4 deletions docs/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
= 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[]
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[]
2 changes: 1 addition & 1 deletion docs/javadoc-and-source.asciidoc
Original file line number Diff line number Diff line change
@@ -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.