Skip to content

Commit

Permalink
Fix warnings in asciidoc generation (#1013)
Browse files Browse the repository at this point in the history
We sometimes weren't closing tags, or were closing them incorrectly.

After this PR, all of the tag warnings generating the docs are gone
  • Loading branch information
timyates authored Jan 10, 2024
1 parent c46e43b commit c7e83d1
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ interface CustomReturnClient {
Mono<String> sendReactive(Animal animal) //<3>

}
// tag::clazz[]
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ import reactor.core.publisher.Mono
Mono<VersionedSecret> fromOtherProject = client.getSecret("secretId", "latest", "another-project-id") //<3>
}
}
//tag::clazz[]
//end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ import io.micronaut.core.bind.annotation.Bindable
@Target(AnnotationTarget.VALUE_PARAMETER)
@Bindable // <1>
annotation class MessagePublishTime
//tag::clazz[]
//end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ class MessagePublishTimeAnnotationBinder(private val conversionService: Conversi


}
// tag::clazz[]
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ interface CustomConfigurationClient {
@Topic(value = "animals", configuration = "immediate")
fun send(animal: Animal) // <2>
}
// tag::clazz[]
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ interface CustomReturnClient {

@Topic("animals")
fun sendReactive(animal: Animal?): Mono<String> //<3>

}
}
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ class JavaMessageSerDes : PubSubMessageSerDes {
return baos.toByteArray()
}
}
// tag::clazz[]
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ class AcknowledgementSubscriber(private val messageProcessor: MessageProcessor)
}
}
}
// tag::clazz[]
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ class ErrorHandlingSubscriber : PubSubMessageReceiverExceptionHandler { // <1>

}
}
// tag::clazz[]
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ class SimpleSubscriber {

@Subscription("animals") // <2>
fun onMessage(animal: Animal) {

}

@Subscription("projects/eu-project/subscriptions/animals") // <3>
fun onMessageEU(animal: Animal) {

}

}
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ class GoogleClientExample (private val client: SecretManagerServiceClient) { //
.build())
val secret = response.payload.data.toStringUtf8()
}
}
}
//end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ public interface CustomReturnClient {
Mono<String> sendReactive(Animal animal); //<3>

}
// tag::clazz[]
// end::clazz[]
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public void onStartup(StartupEvent event) {
Mono<VersionedSecret> fromOtherProject = Mono.from(client.getSecret("secretId", "latest", "another-project-id")); //<3>
}
}
//tag::clazz[]
//end::clazz[]

0 comments on commit c7e83d1

Please sign in to comment.