Skip to content

Commit bc076f4

Browse files
committed
Sync documentation of main branch
1 parent 9622a5c commit bc076f4

File tree

4 files changed

+13
-48
lines changed

4 files changed

+13
-48
lines changed

_generated-doc/main/config/quarkus-all-config.adoc

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10553,27 +10553,6 @@ endif::add-copy-button-to-env-var[]
1055310553
|boolean
1055410554
|`false`
1055510555

10556-
a|icon:lock[title=Fixed at build time] [[quarkus-core_quarkus-test-native-image-profile]] [.property-path]##link:#quarkus-core_quarkus-test-native-image-profile[`quarkus.test.native-image-profile`]##
10557-
ifdef::add-copy-button-to-config-props[]
10558-
config_property_copy_button:+++quarkus.test.native-image-profile+++[]
10559-
endif::add-copy-button-to-config-props[]
10560-
10561-
10562-
[.description]
10563-
--
10564-
The profile to use when testing the native image
10565-
10566-
10567-
ifdef::add-copy-button-to-env-var[]
10568-
Environment variable: env_var_with_copy_button:+++QUARKUS_TEST_NATIVE_IMAGE_PROFILE+++[]
10569-
endif::add-copy-button-to-env-var[]
10570-
ifndef::add-copy-button-to-env-var[]
10571-
Environment variable: `+++QUARKUS_TEST_NATIVE_IMAGE_PROFILE+++`
10572-
endif::add-copy-button-to-env-var[]
10573-
--
10574-
|string
10575-
|`prod`
10576-
1057710556
a|icon:lock[title=Fixed at build time] [[quarkus-core_quarkus-test-integration-test-profile]] [.property-path]##link:#quarkus-core_quarkus-test-integration-test-profile[`quarkus.test.integration-test-profile`]##
1057810557
ifdef::add-copy-button-to-config-props[]
1057910558
config_property_copy_button:+++quarkus.test.integration-test-profile+++[]
@@ -10593,7 +10572,7 @@ Environment variable: `+++QUARKUS_TEST_INTEGRATION_TEST_PROFILE+++`
1059310572
endif::add-copy-button-to-env-var[]
1059410573
--
1059510574
|string
10596-
|`prod`
10575+
|`${quarkus.profile:prod}`
1059710576

1059810577
a|icon:lock[title=Fixed at build time] [[quarkus-core_quarkus-test-profile]] [.property-path]##link:#quarkus-core_quarkus-test-profile[`quarkus.test.profile`]##
1059910578
ifdef::add-copy-button-to-config-props[]

_generated-doc/main/config/quarkus-core_quarkus.test.adoc

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -237,27 +237,6 @@ endif::add-copy-button-to-env-var[]
237237
|boolean
238238
|`false`
239239

240-
a|icon:lock[title=Fixed at build time] [[quarkus-core_quarkus-test-native-image-profile]] [.property-path]##link:#quarkus-core_quarkus-test-native-image-profile[`quarkus.test.native-image-profile`]##
241-
ifdef::add-copy-button-to-config-props[]
242-
config_property_copy_button:+++quarkus.test.native-image-profile+++[]
243-
endif::add-copy-button-to-config-props[]
244-
245-
246-
[.description]
247-
--
248-
The profile to use when testing the native image
249-
250-
251-
ifdef::add-copy-button-to-env-var[]
252-
Environment variable: env_var_with_copy_button:+++QUARKUS_TEST_NATIVE_IMAGE_PROFILE+++[]
253-
endif::add-copy-button-to-env-var[]
254-
ifndef::add-copy-button-to-env-var[]
255-
Environment variable: `+++QUARKUS_TEST_NATIVE_IMAGE_PROFILE+++`
256-
endif::add-copy-button-to-env-var[]
257-
--
258-
|string
259-
|`prod`
260-
261240
a|icon:lock[title=Fixed at build time] [[quarkus-core_quarkus-test-integration-test-profile]] [.property-path]##link:#quarkus-core_quarkus-test-integration-test-profile[`quarkus.test.integration-test-profile`]##
262241
ifdef::add-copy-button-to-config-props[]
263242
config_property_copy_button:+++quarkus.test.integration-test-profile+++[]
@@ -277,7 +256,7 @@ Environment variable: `+++QUARKUS_TEST_INTEGRATION_TEST_PROFILE+++`
277256
endif::add-copy-button-to-env-var[]
278257
--
279258
|string
280-
|`prod`
259+
|`${quarkus.profile:prod}`
281260

282261
a|icon:lock[title=Fixed at build time] [[quarkus-core_quarkus-test-profile]] [.property-path]##link:#quarkus-core_quarkus-test-profile[`quarkus.test.profile`]##
283262
ifdef::add-copy-button-to-config-props[]

_versions/main/guides/_attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
:logstash-image: docker.io/elastic/logstash:8.15.0
2020
:kibana-image: docker.io/elastic/kibana:8.15.0
2121
:keycloak-docker-image: quay.io/keycloak/keycloak:26.2.0
22-
:jandex-version: 3.3.0
22+
:jandex-version: 3.3.1
2323
:jandex-gradle-plugin-version: 1.0.0
2424
:kotlin-version: 2.1.20
2525
:grpc-version: 1.69.1

_versions/main/guides/qute-reference.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,9 +2061,13 @@ public class ItemResource {
20612061
[[type_safe_fragments]]
20622062
==== Type-safe Fragments
20632063

2064-
You can also define a type-safe <<fragments,fragment>> in your Java code.
2065-
A _native static_ method with the name that contains a dollar sign `$` denotes a method that represents a fragment of a type-safe template.
2066-
The name of the fragment is derived from the annotated method name.
2064+
You can also define a type-safe <<fragments,fragment>> of a type-safe template in your Java code.
2065+
There are two ways to define a type-safe fragment:
2066+
2067+
1. A _native static_ method annotated with `@CheckedTemplate`, with a name that contains a dollar sign `$`.
2068+
2. A Java record that implements `io.quarkus.qute.TemplateInstance` and its name contains a dollar sign `$`.
2069+
2070+
The name of the fragment is derived from the annotated member name.
20672071
The part before the last occurrence of a dollar sign `$` is the method name of the related type-safe template.
20682072
The part after the last occurrence of a dollar sign is the fragment identifier.
20692073
The strategy defined by the relevant `CheckedTemplate#defaultName()` is honored when constructing the defaulted names.
@@ -2082,6 +2086,9 @@ class Templates {
20822086
20832087
// defines a fragment of Templates#items() with identifier "item"
20842088
static native TemplateInstance items$item(Item item); <1>
2089+
2090+
// type-safe fragment as a Java record - functionally equivalent to the items$item() method above
2091+
record items$item(Item item) implements TemplateInstance {}
20852092
}
20862093
----
20872094
<1> Quarkus validates at build time that each template that corresponds to the `Templates#items()` contains a fragment with identifier `item`. Moreover, the parameters of the fragment method are validated too. In general, all type-safe expressions that are found in the fragment and that reference some data from the original/outer template require a specific parameter to be present.

0 commit comments

Comments
 (0)