From b76dccac215a3cfbcf0990acd040b37fd6d77e5d Mon Sep 17 00:00:00 2001 From: Colleen McGinnis Date: Mon, 21 Apr 2025 11:11:50 -0500 Subject: [PATCH 1/2] fix various syntax and rendering issues --- .../transport/rest-client/usage/requests.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/reference/transport/rest-client/usage/requests.md b/docs/reference/transport/rest-client/usage/requests.md index 5632259e5..2d43ba9f3 100644 --- a/docs/reference/transport/rest-client/usage/requests.md +++ b/docs/reference/transport/rest-client/usage/requests.md @@ -163,20 +163,17 @@ Cancellable cancellable = restClient.performRequestAsync( new ResponseListener() { @Override public void onSuccess(Response response) { - <1> + // Process the returned response, in case it was + // ready before the request got cancelled } @Override public void onFailure(Exception exception) { - <2> + // Handle the returned exception, which will most + // likely be a `CancellationException` as the request + // got cancelled } } ); cancellable.cancel(); ``` - -1. Process the returned response, in case it was ready before the request got cancelled -2. Handle the returned exception, which will most likely be a `CancellationException` as the request got cancelled - - - From 32105ce7877984e6b88d26e6102b62c423c689c1 Mon Sep 17 00:00:00 2001 From: Colleen McGinnis Date: Wed, 23 Apr 2025 15:35:00 -0500 Subject: [PATCH 2/2] more fixes --- .../reference/transport/rest-client/sniffer/maven_repository.md | 2 +- docs/reference/transport/rest-client/usage/maven.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/transport/rest-client/sniffer/maven_repository.md b/docs/reference/transport/rest-client/sniffer/maven_repository.md index d86caaddf..7fc23890d 100644 --- a/docs/reference/transport/rest-client/sniffer/maven_repository.md +++ b/docs/reference/transport/rest-client/sniffer/maven_repository.md @@ -29,7 +29,7 @@ Here is how you can configure the dependency using maven as a dependency manager Here is how you can configure the dependency using gradle as a dependency manager. Add the following to your `build.gradle` file: -```groovy +```groovy subs=true dependencies { compile 'org.elasticsearch.client:elasticsearch-rest-client-sniffer:{{version}}' } diff --git a/docs/reference/transport/rest-client/usage/maven.md b/docs/reference/transport/rest-client/usage/maven.md index df88bea06..0586e4a8e 100644 --- a/docs/reference/transport/rest-client/usage/maven.md +++ b/docs/reference/transport/rest-client/usage/maven.md @@ -31,7 +31,7 @@ Here is how you can configure the dependency using maven as a dependency manager Here is how you can configure the dependency using gradle as a dependency manager. Add the following to your `build.gradle` file: -```groovy +```groovy subs=true dependencies { compile 'org.elasticsearch.client:elasticsearch-rest-client:{{version}}' }