Skip to content

Commit

Permalink
Update to switch to Standard Doclet (#25674)
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity authored Nov 24, 2021
1 parent bdc5fb5 commit 91990c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions sdk/appconfiguration/azure-data-appconfiguration-perf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

<name>Microsoft Azure client library for App Configuration performance tests</name>

<properties>
<codesnippet.skip>false</codesnippet.skip>
<javadocDoclet></javadocDoclet>
<javadocDocletOptions></javadocDocletOptions>
</properties>

<dependencies>
<dependency>
<groupId>com.azure</groupId>
Expand Down
3 changes: 1 addition & 2 deletions sdk/translation/azure-ai-documenttranslator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ In order to interact with the Document Translator service, you'll need to create
You can obtain the endpoint and API key from the resource information in the [Azure Portal][azure_portal] from your Document Translator resource. The endpoint is of format `https://<NAME-OF-YOUR-RESOURCE>.cognitiveservices.azure.com`.

##### Example
<!-- embedme ./src/samples/java/com/azure/ai/documenttranslator/ReadmeSamples.java#L21-L29 -->
```java
```java readme-sample-createBatchDocumentTranslationRestClient
String endpoint = String.format("https://%s.cognitiveservices.azure.com/translator/text/batch/v1.0-preview.1",
"<document-translator-resource-name>");
String apiKey = "<document-translator-api-key>";
Expand Down
3 changes: 3 additions & 0 deletions sdk/translation/azure-ai-documenttranslator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<javaModulesSurefireArgLine>
--add-exports com.azure.core/com.azure.core.implementation.jackson=ALL-UNNAMED
</javaModulesSurefireArgLine>
<codesnippet.skip>false</codesnippet.skip>
<javadocDoclet></javadocDoclet>
<javadocDocletOptions></javadocDocletOptions>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class ReadmeSamples {
* Sample for creating low level client.
*/
public void createClient() {
// BEGIN: readme-sample-createBatchDocumentTranslationRestClient
String endpoint = String.format("https://%s.cognitiveservices.azure.com/translator/text/batch/v1.0-preview.1",
"<document-translator-resource-name>");
String apiKey = "<document-translator-api-key>";
Expand All @@ -27,5 +28,6 @@ public void createClient() {
.endpoint(endpoint)
.httpClient(new NettyAsyncHttpClientBuilder().build())
.buildRestClient();
// END: readme-sample-createBatchDocumentTranslationRestClient
}
}

0 comments on commit 91990c9

Please sign in to comment.