From d3c69b0a5e88df5c94682c26f2e7906453d42d49 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 9 Oct 2024 15:09:40 -0300 Subject: [PATCH] Remove extra brace Fix broken link Update docs/src/main/asciidoc/extension-writing-dev-service.adoc Co-authored-by: Guillaume Smet --- docs/src/main/asciidoc/extension-writing-dev-service.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/extension-writing-dev-service.adoc b/docs/src/main/asciidoc/extension-writing-dev-service.adoc index 7f9e18f3ba469..27d96ce380787 100644 --- a/docs/src/main/asciidoc/extension-writing-dev-service.adoc +++ b/docs/src/main/asciidoc/extension-writing-dev-service.adoc @@ -23,11 +23,11 @@ include::_attributes.adoc[] If your extension provides APIs for connecting to an external service, it's a good idea to provide a xref:dev-services.adoc[Dev Service] implementation. To create a Dev Service, add a new build step into the extension processor class that returns a `DevServicesResultBuildItem`. -Here, the link:https://hub.docker.com/_/hello-world`hello-world` image is used, but you should set up the right image for your service. +Here, the https://hub.docker.com/_/hello-world[`hello-world`] image is used, but you should set up the right image for your service. [source%nowrap,java] ---- - @BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class) { + @BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class) public DevServicesResultBuildItem createContainer() { DockerImageName dockerImageName = DockerImageName.parse("hello-world"); GenericContainer container = new GenericContainer<>(dockerImageName) @@ -89,7 +89,7 @@ For example, [source%nowrap,java] ---- - @BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class) { + @BuildStep(onlyIfNot = IsNormal.class, onlyIf = GlobalDevServicesConfig.Enabled.class) public DevServicesResultBuildItem createContainer(MyConfig config) { ----