Skip to content

Commit

Permalink
Merge branch 'main' into renovate/org.jacoco-jacoco-maven-plugin-0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
alicejli authored May 4, 2023
2 parents 5a917ec + b67fff3 commit 84b256a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public static String cleanupHtml(String text) {
.replaceAll("\\{@link *\"([^\\{]+)\" *\\}", "<a href=\"$1\">$1</a>")
.replaceAll("\\[([^]]+)]\\[([^]]+)\\]", "<xref uid=\"$2\" data-throw-if-not-resolved=\"false\">$1</xref>")
.replaceAll("\\{@link *([^\\{\"]+) *\\}", "<xref uid=\"$1\" data-throw-if-not-resolved=\"false\">$1</xref>")
.replaceAll("=======================([^=]+)=======================", "<h2>$1</h2>");
.replaceAll("=======================([^=]+)=======================", "<h3>$1</h3>");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void cleanupHtmlAddHrefTagsTest() {
@Test
public void cleanupHtmlEqualTitlesTest() {
String expectedActual = "======================= SpeechClient =======================";
String expectedResult = "<h2> SpeechClient </h2>";
String expectedResult = "<h3> SpeechClient </h3>";
String random = UUID.randomUUID().toString();

assertEquals(expectedResult, YamlUtil.cleanupHtml(expectedActual));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ items:
nameWithType: "com.microsoft.samples"
fullName: "com.microsoft.samples"
type: "Namespace"
summary: "The interfaces provided are listed below, along with usage samples.\n\n <p><h2> SpeechClient </h2>\n\n <p>Service Description: Service that implements Google Cloud Speech API.\n\n <p>Sample for SpeechClient:\n\n <pre class=\"prettyprint lang-java\"><code>\n try (SpeechClient speechClient = SpeechClient.create()) {\n RecognitionConfig config = RecognitionConfig.newBuilder().build();\n RecognitionAudio audio = RecognitionAudio.newBuilder().build();\n RecognizeResponse response = speechClient.recognize(config, audio);\n }\n </code></pre>\n\n <p><h2> AdaptationClient </h2>\n\n <p>Service Description: Service that implements Google Cloud Speech Adaptation API.\n\n <p>Sample for AdaptationClient:\n\n <pre class=\"prettyprint lang-java\"><code>\n try (AdaptationClient adaptationClient = AdaptationClient.create()) {\n LocationName parent = LocationName.of(\"[PROJECT]\", \"[LOCATION]\");\n PhraseSet phraseSet = PhraseSet.newBuilder().build();\n String phraseSetId = \"phraseSetId959902180\";\n PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId);\n }\n </code></pre>"
summary: "The interfaces provided are listed below, along with usage samples.\n\n <p><h3> SpeechClient </h3>\n\n <p>Service Description: Service that implements Google Cloud Speech API.\n\n <p>Sample for SpeechClient:\n\n <pre class=\"prettyprint lang-java\"><code>\n try (SpeechClient speechClient = SpeechClient.create()) {\n RecognitionConfig config = RecognitionConfig.newBuilder().build();\n RecognitionAudio audio = RecognitionAudio.newBuilder().build();\n RecognizeResponse response = speechClient.recognize(config, audio);\n }\n </code></pre>\n\n <p><h3> AdaptationClient </h3>\n\n <p>Service Description: Service that implements Google Cloud Speech Adaptation API.\n\n <p>Sample for AdaptationClient:\n\n <pre class=\"prettyprint lang-java\"><code>\n try (AdaptationClient adaptationClient = AdaptationClient.create()) {\n LocationName parent = LocationName.of(\"[PROJECT]\", \"[LOCATION]\");\n PhraseSet phraseSet = PhraseSet.newBuilder().build();\n String phraseSetId = \"phraseSetId959902180\";\n PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId);\n }\n </code></pre>"
syntax:
content: "package com.microsoft.samples"
javaType: "package"
Expand Down

0 comments on commit 84b256a

Please sign in to comment.